Is it possible to search Twitter users by url?

I am developing an application, and I am wondering if there is a way to search for a specific user using the send URL?

basically, what I want to do is figure out the relationship between the site and the Twitter account, say, given foobar.com domain, the code will find out about a possible Twitter account for this site, say @iamowneroffoobar, whose URL value has been set as "http: //foobar.com "on Twitter.

Checking the twitter API, https://dev.twitter.com/docs/api/1.1/get/users/search I could not find a way to do this, but I already saw that this function was implemented by several other sites, somebody knows how to do this?

+4
source share
2 answers

I don’t have a direct or simple answer, but you can try searching the URL on Twitter using Google or the Bing Search API.

This article notes that you can search for Twitter users based on the words used in their biographical profile - website: twitter.com intitle: "on twitter" "bio * sport" *

This will provide you with a long list of people who used the word sport in their Twitter biography. Again, just change the search query to suit your needs.

See if you can tailor this search to programmatically find the URL specified in your Twitter user’s biography.

+1
source

You can create your own web crawler that looks for a link to www.twitter.com/username in the HTML source page. For example, do an online search for top sites that are indexed under the name "foobar" in the domain name, and then scan these pages for the code for your Twitter button containing the username. I have some ideas on how to do this in Python. Basically exactly what I learned for the CS101 course at Udacity.com.

0
source

Source: https://habr.com/ru/post/1433286/


All Articles