Click here to Skip to main content
13,052,558 members (57,394 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I'm new around here, and I'm very beginner in programming, I know the very basics of Visual Basic. I wanted to create a program that search for torrent files an displays the results from different pre-defined sites in a list, and I had two problems that I wish for someone to help me with.

Problem 1:
How can I now the link to use in the code to search in the websites, such as the one for Google "".

Problem 2:
How can I make only the results to appear in my list since I don't want to open the page itself.

Thank you.
Posted 7-Aug-12 15:11pm
What do you mean by "VB"? Not "VB.NET" (because this is a different language)? (I don't know if many would be bothering to answer about VB6 or something like that.)
icemclean 8-Aug-12 17:01pm
Wouldn't it be less overhead to go with PHP? That's just my opinion :)

Firstly, you'd need to find the search URL of each site you wanted to get listings from and change the search string so you could retrieve the listings from that site. Then, you'd need to parse the resulting page and take the links.

Unless, of course, the site has an API that you can use.

Scraping like this is generally a bad idea because:
* You are using somebody else's bandwidth to execute the search, which the owner of the site will probably not be too pleased about if they found out.
* The layout of the search page could change at any time, rendering your script useless.
* The structure of the search string could change at any time, also rendering your script useless.
* There may also be legal issues regarding scraping someone else's site.
EmiChii 9-Aug-12 18:27pm
from what I get from your replay is that it's a bad idea creating this kind of program though I didn't mean to hurt the owners, my goal was to make it easier to search for torrent files, and thank you for the opinion =)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 7 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100