PaperbackSwap Scraper

  • epctex/paperbackswap-scraper
  • Modified
  • Users 3
  • Runs 200
  • Created by Author's avatarepctex

Get information on books right away from PaperBack Swap! Get title, prices, rating, ISBN13, ISBN10, publisher, and a lot more are waiting for you. Use any filter, search anything, and retrieve your results without any limits. Get it with JSON, XML, Excel, CSV, or many other options. Super fast!

Free trial for 3 days

Then $20.00/month

No credit card required now

PaperbackSwap Scraper

Free trial for 3 days

Then $20.00/month

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

# Set API token
API_TOKEN=<YOUR_API_TOKEN>

# Prepare Actor input
cat > input.json <<'EOF'
{
  "startUrls": [
    "https://www.paperbackswap.com/5th-Wave-Bk-Rick-Yancey/book/0142425834/",
    "https://www.paperbackswap.com/Pulitzer-Prize/award/2/?g=History",
    "https://www.paperbackswap.com/Mark-Sanborn/author/",
    "https://www.paperbackswap.com/Christian-Fiction/tag/2043/?l=10&ls=10"
  ],
  "search": "harry potter",
  "maxItems": 20,
  "endPage": 1,
  "extendOutputFunction": "($) => { return {} }",
  "customMapFunction": "(object) => { return {...object} }",
  "proxy": {
    "useApifyProxy": true
  }
}
EOF

# Run the Actor
curl "https://api.apify.com/v2/acts/epctex~paperbackswap-scraper/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'