Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Scraping a website

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #45551

    I need to scrape a website using JS for a mobile app being built with phonegap.

    I have read that scraping using node.js is simple. So is there a way to tie up the app to node.js app that scrapes the websites and returns a json to the app. If so how? and what will I need

    #138877
    __
    Participant

    >If so how?

    getting JSON from a server usually involves an HTTP request (e.g., AJAX).

    >and what will I need

    You’ll need to learn how to use AJAX and node.js, for starters.

    You should also make sure the sites in question will **allow** you to scrape their content. Usually, if a site wants to allow you access to their content, they’ll provide an API for the purpose (and there will be no need to try and figure it out yourself). Remember that copyright is _implied_ in most jurisdictions, and failure to refuse is not the same as granting permission. Ask first.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.