Activity Stream
48,167 MEMBERS
6843 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1.     
    #1
    Member
    Website's:
    warezall.com

    Default How to get pagesource of Google ?

    Code: 
    Dim req As HttpWebRequest = Nothing
            Dim pagesource As StreamReader
            Dim response As HttpWebResponse
    
            
            req = WebRequest.Create("http://www.google.co.in")
            req.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100625 Firefox/3.6.8"
            req.Timeout = 60000
            req.Method = "GET"
            'req.CookieContainer = cookies
            req.AllowAutoRedirect = False
            req.ContentType = "application/x-www-form-urlencoded"
    
            response = req.GetResponse()
            pagesource = New IO.StreamReader(response.GetResponseStream(), System.Text.Encoding.GetEncoding("utf-8"))
    
            Dim str As String = pagesource.ReadToEnd
            
            Dim iofile2 As New StreamWriter("c:\post.txt", False, Encoding.Default)
            iofile2.Write(str)
            iofile2.Close()

    But i m getting invalid characters like



    How to get rid of selected words

    Thanks
    CatchItBaby Reviewed by CatchItBaby on . How to get pagesource of Google ? Dim req As HttpWebRequest = Nothing Dim pagesource As StreamReader Dim response As HttpWebResponse req = WebRequest.Create("http://www.google.co.in") req.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100625 Firefox/3.6.8" req.Timeout = 60000 req.Method = "GET" 'req.CookieContainer = cookies Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    You are being serious? You want the source of Google homepage?

  4.     
    #3
    Banned
    EDIT : wait you want source code ?

    lol , it's Google , not some noob site !

    All source codes are encrypted .

    PS: Use your brain !

  5.     
    #4
    Member
    Lol...

  6.     
    #5
    Banned
    Website's:
    IMGit.org ShareBB.org ShareBB.info
    What...?

  7.     
    #6
    Member
    Website's:
    KWWHunction.com Google.com
    ha ha..
    Intel Xeon E3 -1240 16 GB DDR3 Ram 4 x 1 TB HDD 1 Gbit 100 TB BW -
    Location:Netherlands 185 Euros/Month- PM me to order

  8.     
    #7
    Member
    Website's:
    warezall.com
    All above comment's are useless

    press clt + u that's what i need either it is encrypted or not

    cogh cogh..

  9.     
    #8
    Member
    Why the hell would you want to copy Google's homepage? Do you want to have a Google search form on your site, if you do here you go:
    http://www.google.com/cse/

    You'll get a code which you will add on your site.

  10.     
    #9
    Member
    Website's:
    warezall.com
    Google.co.in is just a example



    want to get rid of selected character in image ONLY NOTHING ELSE I WANT TO DO

    ascii value of selected character is = 10

    may be i m missing encoding or something else in above example

  11.     
    #10
    Member
    hmm maybe you should use UTF8Encoding .
    If you are trying to create a bot or a leecher, there are other easy ways

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 16
    Last Post: 9th Jul 2012, 07:22 AM
  2. Replies: 1
    Last Post: 14th Jun 2012, 07:59 AM
  3. Google Punishes Chrome for 60 days for violating Google Rules
    By Carbon in forum News & Current Events
    Replies: 5
    Last Post: 6th Jan 2012, 12:38 PM
  4. Replies: 3
    Last Post: 2nd Dec 2011, 03:27 PM
  5. Replies: 0
    Last Post: 30th Jun 2010, 06:51 PM

Tags for this Thread

BE SOCIAL