How can i pull content from another website?

Discussion in 'Programming' started by Kennyz, Feb 28, 2011.

  1. #1
    For example i have my own website, and i want to pull content from another website
    but not the whole content, only the a href links, how can i do that?

    Thanks
     
    Kennyz, Feb 28, 2011 IP
  2. biiccs

    biiccs Member

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #2
    You need for example php script whit curl for that or grab content by rss and then process data via script.
    Good luck.
     
    biiccs, Feb 28, 2011 IP
  3. Kennyz

    Kennyz Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i need to grab only the a href links, can you give me script example?
     
    Kennyz, Feb 28, 2011 IP
  4. Kennyz

    Kennyz Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Guys , look at this code, whats wrong?
    I'm trying to pull the results from google with this code, search for PHP

    But inside the text.txt file is see NOT FOUND, here it is, whats wrong here?

    HTTP/1.1 404 Not Found
    Content-Type: text/html; charset=UTF-8
    X-Content-Type-Options: nosniff
    Date: Mon, 28 Feb 2011 17:24:45 GMT
    Server: sffe
    Content-Length: 1354
    X-XSS-Protection: 1; mode=block
     
    Kennyz, Feb 28, 2011 IP
  5. skywebsol

    skywebsol Well-Known Member

    Messages:
    161
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    may be this will help you
     
    skywebsol, Feb 28, 2011 IP
  6. Kennyz

    Kennyz Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Great works :)

    Can you please explain me the $regexp ?
    what is all this
    And can you tell me please what this line does?
     
    Last edited: Feb 28, 2011
    Kennyz, Feb 28, 2011 IP