Python Forum
"EOL While Scanning String Literal"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"EOL While Scanning String Literal"
#36
It doesn't need to be forced this is the way the code is developed.
This is what's called data driven software, whatever is in the apis.text file will be downloaded, period, this is the only way it is set up to work!!!

Read the commented code. I explain in detail! the file name is extracted from the header stored in the response from request!
It is extracted and used. If it can't find the proper header information, it will use the name from the apis.text file, but the origin of
the download is still the apis.txt file.

Try the following:
  • find the apis number (or whatever it's called) for only one that you haven't downloaded yet.
  • Backup the old apis.txt file by renaming it to apis_bak1.txt (or some such name)
  • Open a text editor like notebook or vi
  • type in the apis number and enter
  • save in the text directory as apis.txt
  • Run the program
  • You should now find all the files associated with this apis number in their respective directories.
That's all there is to it!
Reply


Messages In This Thread
"EOL While Scanning String Literal" - by tjnichols - Apr-09-2018, 09:49 PM
RE: "EOL While Scanning String Literal" - by wavic - Apr-09-2018, 10:29 PM
So simple! - by tjnichols - Apr-09-2018, 11:14 PM
RE: "EOL While Scanning String Literal" - by nilamo - Apr-12-2018, 03:57 PM
RE: "EOL While Scanning String Literal" - by Larz60+ - May-04-2018, 11:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Literal beginner - needs help warriordazza 2 1,816 Apr-27-2020, 11:15 AM
Last Post: warriordazza

Forum Jump:

User Panel Messages

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