rugantio / fbcrawl

A Facebook crawler
Apache License 2.0
660 stars 230 forks source link

Can't not crawl due to Non-ASCII character #33

Open hoangdv-uet opened 5 years ago

hoangdv-uet commented 5 years ago

I ran "scrapy crawl fb -a email="barackobama@gmail.com" -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?

lmkhuyen commented 5 years ago

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

hoangdv-uet commented 5 years ago

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

lastknight commented 5 years ago

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

`# coding: latin-1

Worked for me.