SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2013
    0 Post(s)
    0 Thread(s)

    Pulling Data From External Sites (SQL?)

    First off I have no idea which are to post this in so I apologise if its the wrong area of the forum

    My question relates to data from external websites etc

    How do I go about pulling data from an external website so I can show it myself. Preferably via SQL?

    I say preferably via SQL so I can use search terms etc (IN ('123', '1234') etc....

    I don't know where to start in terms of tutorials etc.... I dont know what to google or anything

    Discalimer: This is all above board, the dat I want to pull is public data and is encouraged to be shared.

  2. #2
    SitePoint Member
    Join Date
    Aug 2008
    0 Post(s)
    0 Thread(s)
    It sounds like what you are looking for is Web Scraping.

    SQL is not really an option for this. Someone would have to give you access to their database in order to use SQL.

    However you do this, you will have to parse markup based on a response. Nokogiri is the standard for Ruby, but something like cURL would allow you to fetch the source of a URL and then you can parse it however you like.

  3. #3
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Poole, UK
    103 Post(s)
    0 Thread(s)
    Does the website have an public api available that you could use? If not try contacting the owner of the website concerned.
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts