I had a web scraper coded for me earlier on in the year via Upwork. The person who coded the scraper is no longer available. The error message is as follows:
[dave@RebornOS rapid7]$ '/home/dave/Desktop/rapid7/rapid7/Start_Scraper.py'
/home/dave/Desktop/rapid7/rapid7/Start_Scraper.py: line 2: $'try:\r': command not found
/home/dave/Desktop/rapid7/rapid7/Start_Scraper.py: line 3: syntax error near unexpected token `('
'home/dave/Desktop/rapid7/rapid7/Start_Scraper.py: line 3: ` f=open('allitems.db','r')
[dave@RebornOS rapid7]$
I have no idea what these error messages mean.
Help (and thanks). Dave.
You are trying to run the script with bash; since you're missing a shebang it's not interpreted via python.
Please add the shebang #!/usr/bin/env python
to the top of your file alternatively run it via python your_script.py
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.