Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looping with Beautifulsoup
#4
(Jan-23-2019, 07:17 AM)CaptainCsaba Wrote: The idea is great, it's much shorter and easier this way, however, I get a syntax error at the "as" in while open('input.txt') as url_file: thich I don't really understand why. I am using python 3.7.
Post your actual code that produce error. Ichabood's code is fine, so there is problem with how you changed your code
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Looping with Beautifulsoup - by CaptainCsaba - Jan-22-2019, 11:55 AM
RE: Looping with Beautifulsoup - by ichabod801 - Jan-22-2019, 04:20 PM
RE: Looping with Beautifulsoup - by CaptainCsaba - Jan-23-2019, 07:17 AM
RE: Looping with Beautifulsoup - by buran - Jan-23-2019, 09:41 AM
RE: Looping with Beautifulsoup - by CaptainCsaba - Jan-23-2019, 10:49 AM
RE: Looping with Beautifulsoup - by snippsat - Jan-23-2019, 11:18 AM
RE: Looping with Beautifulsoup - by buran - Jan-23-2019, 11:20 AM
RE: Looping with Beautifulsoup - by CaptainCsaba - Jan-23-2019, 11:30 AM
RE: Looping with Beautifulsoup - by buran - Jan-23-2019, 12:38 PM

Forum Jump:

User Panel Messages

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