Jump to content
UBot Underground

Scraping YouTube Usernames


Recommended Posts

I'm running into a snag over at youtube. The idea is to insert a list of keywords and have Ubot search and scrape the usernames pertaining to the search results, the big problem is that youtube uses something that looks like this for each search result:

 

result 1: <A id=video-from-username-8QvW1XETz2g class=hLink href="/user/leelefever">leelefever</A>

 

result 2: <A id=video-from-username-gwLiC_VhFZE class=hLink href="/user/expertvillage">expertvillage</A>

 

 

...

 

Does anyone have a clever way to scrape the usernames for a setup like this? You can see there are three changing parts and nothing unique about the id for each result, so I can't just scrape the username between > and </a>. I tried a wildcard for the other changing parts but no luck. Also, how does Ubot know to move down the page and scrape result 2? I suppose it can't based on the id being the same?

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...