Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Scrape restricted twitter accounts #3

Open
DonaldTsang opened this issue Mar 8, 2018 · 4 comments
Open

Scrape restricted twitter accounts #3

DonaldTsang opened this issue Mar 8, 2018 · 4 comments

Comments

@DonaldTsang
Copy link

DonaldTsang commented Mar 8, 2018

Can this scraper scrape tweets like https://twitter.com/jackiec57 ?

To remove the need to click "show sensitive content anyways", it would need to...

  1. Login just like https://gist.github.com/momota10/969d904b4cad239da2a5c00df1ad87e7
  2. Go to https://twitter.com/settings/safety
  3. Check the "show sensitive" box in
    <input name="search-settings-nsfw" checked="" class="SearchSettings-toggleInput SearchSettings-toggleInput--sensitive" type="checkbox">
  4. click "submit" in <button id="settings_save" class="EdgeButton EdgeButton--primary EdgeButton--medium" type="submit" disabled="">Save changes</button>
@justinlittman
Copy link
Owner

It isn't designed to scrape accounts with sensitive contents.

@DonaldTsang
Copy link
Author

@justinlittman but it can be modified to do so, as it uses Selenium. All it has to do is login, no?

@justinlittman
Copy link
Owner

Yes, I believe so. However, I don't believe that you can hydrate protected tweets from Twitter's API (though I could be mistaken).

@igorbrigadir
Copy link
Contributor

I think you can hydrate protected tweets from API if your account follows the protected account (but i'm also not sure about this and need to double check in case this changed).

Protected tweets don't appear at all in searches though, so you can't display from:protected_account.

It is possible to "login" and get tweets that may be hidden as "sensitive" - I have that half working in my fork.

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

No branches or pull requests

3 participants