Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB
Hello,
 
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 "http://www.google.com/search?q=%22".
 
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
(unknown member)
Comments
Sergey Alexandrovich Kryukov at 7-Aug-12 21:16pm
   
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.)
--SA
icemclean at 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 at 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
0 CPallini 375
1 Sergey Alexandrovich Kryukov 262
2 OriginalGriff 225
3 George Jonsson 114
4 Richard MacCutchan 110
0 OriginalGriff 6,344
1 Sergey Alexandrovich Kryukov 5,890
2 CPallini 5,175
3 George Jonsson 3,559
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 7 Aug 2012
Copyright © CodeProject, 1999-2014
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