fbcrawl icon indicating copy to clipboard operation
fbcrawl copied to clipboard

Can't not crawl due to Non-ASCII character

Open hoangdv-uet opened this issue 5 years ago • 3 comments

I ran "scrapy crawl fb -a email="[email protected]" -a password="10wnyu31" -a page="DonaldTrump" -a date="2018-01-01" -a lang="it" -o Trump.csv" at cm but it didn't work This error : " File "/Users/elchapo/fbcrawl-master/fbcrawl/spiders/comments.py", line 297 SyntaxError: Non-ASCII character '\xe2' in file /Users/elchapo/fbcrawl-master/fbcrawl/spiders/comments.py on line 297, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details" Can you help me to fix this?

hoangdv-uet avatar May 21 '19 09:05 hoangdv-uet

I'm not sure about your issue but it should be YOUR (fb account) email and password

lmkhuyen avatar May 23 '19 03:05 lmkhuyen

i also try 3 more account, all my fb account still available. but it not working :(

hoangdv-uet avatar May 23 '19 03:05 hoangdv-uet

Try substituting every instance of coding declaration from "utf-8" to

`# coding: latin-1

Worked for me.

lastknight avatar Jun 11 '19 08:06 lastknight