[ / / / / / / / / / / / / / ] [ dir / agatha2 / animu / ausneets / b2 / choroy / dempart / freeb / vichan ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 7036f3620117ad1⋯.png (11.11 KB, 1687x1687, 1:1, 580b57fcd9996e24bc43c53e.png) (h) (u)

[–]

 No.1072440>>1072442 >>1072653 >>1072684 [Watch Thread][Show All Posts]

Anyone ever mine data from Twitter? Do you use an API or just scrub the raw HTML? I want to do some data analysis against user account reach based on political ideology. It's a personal project to use as further evidence that Twitter is promoting left-leaning accounts while demoting right-leaning accounts and possibly centrist/moderate as well.

 No.1072442>>1072447

>>1072440 (OP)

You can just use twitter's API to do this. It's trivial.


 No.1072447>>1072636

>>1072442

They closed that down a while ago, you now need to apply for "dev" status to get an api key


 No.1072636>>1072653

>>1072447

Every user has an API key (at least on the mobile side, but browser users probably have one too for dynamic javascript stuff). Unless they're showing HTML delivered by the server but that's generally considered a cheap hack and so big tech doesn't do it, they like to have really polished interfaces using the devices native UI toolkit.

It might be rate limited but you can always create more users. Otherwise yeah, web scraping with Selenium or maybe Beautiful Soup if the raw html delivered by the server contains enough information for your needs.


 No.1072653>>1072984

>>1072440 (OP)

If you cant figure out the API or keys as >>1072636

mentioned, then you could use the mobile site (mobile.twitter.com). With the correct cookie, it serves plain HTML.


 No.1072684>>1072984

>>1072440 (OP)

FB is the same. Get a dev API key (free), and you use that with the official API library in the language of your choice, and you can scrape most user information that the user hasn't opted out of sharing. I used this to scrape names of everyone associated with "indivisible" when that was still being hyped. I just had to rate-limit the requests per hour. I don't think it's changed.

The Cambridge Analytica "scandal" was such a joke. FB gives ANYONE, including a nobody like myself, free reign to snoop on any of its users. That's the whole business model. Every social-media service is there to abuse the trust of its users.


 No.1072984>>1073110 >>1073113

>>1072684

Like >>1072653

Said you can also use the mobile site for Facebook to get plain HTML. When my ex deleted her fb and removed all contact from me I made a basic script to scrape my ex's mother's friends list and then in turn scrape all of theirs, ended up with 30,000 people. Then I tried searching through the names and some facial recognition attempts but ended up having to look by hand and eventually found her under a different name.


 No.1073110

File (hide): c02f7825ee7f77e⋯.jpg (51.01 KB, 514x536, 257:268, autism.jpg) (h) (u)

>>1072984

Anon...


 No.1073113

File (hide): 79dc96c6e24446b⋯.jpeg (41.18 KB, 500x500, 1:1, police.jpeg) (h) (u)




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
8 replies | 2 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / agatha2 / animu / ausneets / b2 / choroy / dempart / freeb / vichan ][ watchlist ]