Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script Doesn't Work Right Now #188

Closed
abdullahonden opened this issue May 22, 2018 · 9 comments
Closed

Script Doesn't Work Right Now #188

abdullahonden opened this issue May 22, 2018 · 9 comments

Comments

@abdullahonden
Copy link

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 abdullahonden changed the title Is Twitter Changed Its Detailed Search Page Script Doesn't Work Right Now May 22, 2018
@abdullahonden
Copy link
Author

abdullahonden commented May 22, 2018

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

@abdullahonden
Copy link
Author

abdullahonden commented May 22, 2018

Here's the page that Twitter returns:

`

<meta name="twitter-redirect-url" content="twitter://timeline"/>
<meta name="twitter-redirect-srcs" content="{&quot;pwreset-iphone&quot;:true,&quot;android&quot;:true,&quot;email&quot;:true}"/>
<link href="https://ma.twimg.com/twitter-mobile/8f3445bd0e5eb63b939e25a6ff29981d947a4a51/images/favicon.ico" rel="icon" type="image/x-icon" />
<title>Twitter</title>
  <link href="https://ma.twimg.com/twitter-mobile/8f3445bd0e5eb63b939e25a6ff29981d947a4a51/assets/sys.css" media="screen" rel="stylesheet" type="text/css" />
<meta name="google-site-verification" content="V0yIS0Ec_o3Ii9KThrCoMCkwTYMMJ_JYx_RSaGhFYvw" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
  <div id="brand_bar" class="chromeless">
Twitter Twitter
  <div id="main_content">
        <div class="system">
  <div class="blue">
    <table class="content">
      <tr>
        <td>
          <div class="title">Sorry, diese Seite existiert nicht</div>
          <div class="subtitle"><a href="/">Zurück zur Startseite</a></div>
        </td>
      </tr>
    </table>
  </div>
</div>

  </div>
    <div id="footer">
<div class="search-fields">
<div class="title">
  <label for="q">Gib ein Thema, einen @Nutzernamen oder Vor- und Nachnamen ein</label>
</div>
<form action="/search" class="search-input" method="get">
<table>
  <tr>
    <td class="value" id="search"><div><input id="q" name="q" type="text" value=""/></div></td>
    <td class="button">
      <input type="hidden" name="s" value="typd" />
      <input type="image" src="https://ma.twimg.com/twitter-mobile/8f3445bd0e5eb63b939e25a6ff29981d947a4a51/images/sprites/magnifying_glass.gif" alt="Suchen"/>
    </td>
  </tr>
</table>
</form>
<div class="view-actions"><a href="#top">Zurück nach oben</a> &middot; <a href="/settings/profile_images">Bilder ausblenden</a></div>
</div>
  <script src="https://ma.twimg.com/twitter-mobile/8f3445bd0e5eb63b939e25a6ff29981d947a4a51/assets/base.js" type="text/javascript"></script>

  <img src="/i/anonymize?data=%5B%7B%22integration%22%3A%22ga%22%2C%22ref%22%3A%22https%3A%5C%2F%5C%2Ftwitter.com%5C%2Fi%5C%2Fsearch%5C%2Ftimeline%3Ff%3Dtweets%26q%3D%2520from%253Aoneplus%2520since%253A2018-01-01%2520until%253A2018-03-31%26src%3Dtypd%26max_position%3D%26l%3Den%22%2C%22mobileMetricsToken%22%3A%22152699540123518213%22%7D%5D" height="0" width="0" style="opacity: 0">
`

@oxygala
Copy link

oxygala commented May 22, 2018

I can confirm that the script stopped working.

@abdullahonden
Copy link
Author

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
Copy link

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

@abdullahonden
Copy link
Author

abdullahonden commented May 23, 2018

I've sent a pull-request with the fix: #189

@heenaI
Copy link

heenaI commented May 23, 2018

Thanks @abdullahonden your fix solved the issue for now

@Jefferson-Henrique
Copy link
Owner

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

@heenaI
Copy link

heenaI commented May 24, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants