genebadd 0 Posted March 20, 2010 Report Share Posted March 20, 2010 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? Quote Link to post Share on other sites
genebadd 0 Posted March 20, 2010 Author Report Share Posted March 20, 2010 Okay,,,,I had to do some refresher training on scraping....Seths keyword tool video had the answer... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.