how to make it work automatically in vb.net? -
do know how work backgroundworker code?
the request pulled out of google background worker , if possible collect links google pagination.
not in label or how i'm new that. want make go next page 1,2,3,4,5,6,7,8,9 , on clicking button , make go , pick links through pages background worker or timer or how make work automatically said i'm new. google has pagination. goes through 1 page , stop on first number , not move far.
thank you.
private sub webbrowser1_documentcompleted (byval sender system.object, byval e system.windows.forms.webbrowserdocumentcompletedeventargs) handles webbrowser1.documentcompleted if (webbrowser1.readystate webbrowserreadystate.complete =) each clientcontrol htmlelement in webbrowser1.document.links if not clientcontrol.getattribute ("href"). contains (google) , clientcontrol.getattribute ("href"). contains ("http") , clientcontrol.getattribute ("href"). contains ("http") listbox1.items.add (clientcontrol.getattribute ('href')) end if next end if end sub private sub button1_click (byval sender system.object, byval e system.eventargs) handles button1.click webbrowser1.navigate (http://www.google.lt/search?num=100&q = "& combobox1.text) backgroundworker1.runworkerasync () end sub private sub backgroundworker1_dowork (byval sender object, byval e system.componentmodel.doworkeventargs) handles backgroundworker1.dowork = 0 100 threading.thread.sleep (200) backgroundworker1.reportprogress (i) next end sub private sub backgroundworker1_progresschanged (byval sender object, byval e system.componentmodel.progresschangedeventargs) handles backgroundworker1.progresschanged label1.text = e.progresspercentage end sub
if not understand mean here example of want get. http://s2.postimage.org/a82mtrifh/i_need_this_to_go_far_through_all_pages_automati.png
if have @ google url see there start=
query
you can go straight page want modifying this: (assuming 10 results per page)
page 1
http://www.google.co.uk/#q=vb.net+book&start=0
page 2
http://www.google.co.uk/#q=vb.net+book&start=10
page 3
http://www.google.co.uk/#q=vb.net+book&start=20
Comments
Post a Comment