Jefferson-Henrique / GetOldTweets-python

A project written in Python to get old tweets, it bypass some limitations of Twitter Official API.
MIT License
1.35k stars 807 forks source link

Script Doesn't Work Right Now #188

Closed abdullahonden closed 6 years ago

abdullahonden commented 6 years ago

This script doesn't seem to be working right know. Is says "Twitter weird response". JSON file still coming from Twitter.com, possibly the syntax or something is changed. Do you have any ideas how to fix the issue?

Thanks..

abdullahonden commented 6 years ago

('Unexpected error:', (<class 'urllib2.HTTPError'>, HTTPError(), <traceback object at 0x7fcb621313b0>))

abdullahonden commented 6 years ago

Here's the page that Twitter returns:

`<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">

Twitter
Sorry, diese Seite existiert nicht
`
oxygala commented 6 years ago

I can confirm that the script stopped working.

abdullahonden commented 6 years ago

I think Twitter added a redirect or smth to get the JSON. I can get the file from browser, but script can't download it so it doesn't work.

stefanstrueder commented 6 years ago

Stopped working for me too. @abdullahonden Can you tell me how to get the JSON file from browser?

abdullahonden commented 6 years ago

I've sent a pull-request with the fix: https://github.com/Jefferson-Henrique/GetOldTweets-python/pull/189

heenaI commented 6 years ago

Thanks @abdullahonden your fix solved the issue for now

Jefferson-Henrique commented 6 years ago

Hi guys, interesting finding @abdullahonden, I just found the same issue running by my own. Thanks for sharing anyway.

heenaI commented 6 years ago

it still does not work for more then 1000 tweets for me