(Jul-21-2018, 02:44 PM)bluedoor5 Wrote: or whatever name I choose to call it, "my-text-file.txt"Call it what you want.
(Jul-21-2018, 02:44 PM)bluedoor5 Wrote: What I don't see in the script is what folder the txt file resides.It will be in the folder you run the scrip,use
File --> save
eg save it as my_tite.py
an point to a folder eg C:\MYPYTHONSKOOL.When run it now
my-text-file.txt
will be in folder C:\MYPYTHONSKOOL.Or give path to folder.
with open(r'C:\MYPYTHONSKOOL\my-text-file.txt', 'a+') as f_out: f_out.write(f"{soup.find('title').text}\n"
Quote:"SyntaxError: invalid syntax (<module2 >,line17There is no line 17 in my code.
Quote:I understood the code being:You need to download the wheel in link i gave you gohlke
# Eg lxml wheel for python 32-bit
pip install lxml-4.2.3-cp37-cp37m-win32.whl
The use
pip intall wheel_name.whl
Take it easy and try read it several times and understand what posted,
you seems to struggle with everything from very basic Python to basic system OS understanding