Skip to content

Code examples on how to integrate various types of scrapers with Scraper API.

License

Notifications You must be signed in to change notification settings

scraperapi/scraperapi-code-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3f7b5d3 · Jul 26, 2021

History

14 Commits
May 28, 2021
Jul 26, 2021
May 14, 2021
Apr 27, 2021
May 28, 2021

Repository files navigation

scraperapi-code-examples

There are 3 ways in which you can send integrate your scrapers with Scraper API:

  1. API endpoint: http://api.scraperapi.com/?api_key=YOUR_API_KEY&url=http://httpbin.org/ip
  2. One of our SDK's, currently available for: Python, NodeJS, PHP, Ruby, Java.
  3. Proxy Port: http://scraperapi:YOUR_API_KEY@proxy-server.scraperapi.com:8001

All three options have the same functionality and performance, they just offer you the flexibility to integrate Scraper API in the way that is easiest for you.

Code Examples

This repo contains basic code examples showing you how to integrate ScaperAPI using each of the three integration options:

Python

  1. Python Requests and Beautifulsoup
  2. Python Scrapy
  3. Python Selenium

NodeJS

  1. NodeJS and Cheerio
  2. NodeJS Puppeteer

The full Scraper API documentation can be found here.