Python Forum
Trying to automate tweets without Twitter API
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to automate tweets without Twitter API
#11
I was able to fix the problem, although I don't really fully understand the fix. I changed the open call to:
with open(input_file, 'r', encoding='utf8') as f:
Specifying UTF8 allowed it to read the entire file. Don't know for sure if UTF8 is really the best encoding, but at least it appears to work.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  About Twitter Scraping ahmetcakar 1 1,818 Nov-14-2020, 01:43 AM
Last Post: Larz60+
  Twitter authentication failure with Tweepy HSB 1 3,076 Feb-03-2019, 01:30 PM
Last Post: HSB
  Crawling tweets with scrapy R3turnz 1 4,528 Jan-16-2017, 06:14 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

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