Jump to content
UBot Underground

Scraping Usernames Using Keywords On Twitter


Recommended Posts

Doing some testing on that site you can see the url structure is as follows:

https://twitter.com/search?f=users&vertical=default&q=baking&src=typd

replace the keyword baking with the keyword you want to search then perform your scraping.

  • Like 1
Link to post
Share on other sites

Well you would want to use the run javascript to scroll down which would be:

window.scrollTo(0,document.body.scrollHeight);

Then I would recommend using regex to scrape out the usernames and add those to a list. Then just loop it for as many times you want to scroll down.

Link to post
Share on other sites

Thanks for the info it really helped me out alot the only problem now is that I am able to scrape all the followers of the page but I cant separate the followers by keywords in there bio to get only the followers I want.

Link to post
Share on other sites

Sounds like you are going to need to build a table and navigate to each profile then scrape the information you are looking for and put it into a table.

 

Username, Bio

 

Then you can analyze the data you are looking for that way. Or, you could build the filter right into the bot it's self. For example, navigate to the profile then scrape the bio and create an if statement which see's if that current users bio contains and of the words you choose. If the keyword exists then save those usernames to a list.

 

Play around with different features and you can do what you are asking fairly easy. The more you dig and play around the more you will learn.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...