Python Forum
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getting started, again
#18
(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 >,line17
There is no line 17 in my code.
Quote:I understood the code being:

# Eg lxml wheel for python 32-bit
pip install lxml-4.2.3-cp37-cp37m-win32.whl
You need to download the wheel in link i gave you gohlke
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 Undecided
Reply


Messages In This Thread
getting started, again - by bluedoor5 - Jul-13-2018, 05:32 AM
RE: getting started, again - by bluedoor5 - Jul-13-2018, 09:06 AM
RE: getting started, again - by snippsat - Jul-13-2018, 10:50 AM
RE: getting started, again - by bluedoor5 - Jul-13-2018, 12:38 PM
RE: getting started, again - by bluedoor5 - Jul-16-2018, 10:00 PM
RE: getting started, again - by snippsat - Jul-16-2018, 10:45 PM
RE: getting started, again - by bluedoor5 - Jul-19-2018, 08:39 PM
RE: getting started, again - by nilamo - Jul-19-2018, 08:48 PM
RE: getting started, again - by bluedoor5 - Jul-19-2018, 09:06 PM
RE: getting started, again - by nilamo - Jul-19-2018, 09:07 PM
RE: getting started, again - by bluedoor5 - Jul-19-2018, 09:44 PM
RE: getting started, again - by bluedoor5 - Jul-20-2018, 10:08 AM
RE: getting started, again - by snippsat - Jul-20-2018, 11:00 AM
RE: getting started, again - by bluedoor5 - Jul-20-2018, 10:47 PM
RE: getting started, again - by bluedoor5 - Jul-21-2018, 03:18 AM
RE: getting started, again - by snippsat - Jul-21-2018, 06:50 AM
RE: getting started, again - by bluedoor5 - Jul-21-2018, 02:44 PM
RE: getting started, again - by snippsat - Jul-21-2018, 03:29 PM
RE: getting started, again - by bluedoor5 - Jul-21-2018, 04:36 PM
RE: getting started, again - by nilamo - Jul-23-2018, 06:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  getting started b4iknew 3 2,679 Jan-22-2019, 09:12 AM
Last Post: b4iknew

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020