PaperbackSwap Scraper

3 days trial then $20.00/month - No credit card required now

PaperbackSwap Scraper

PaperbackSwap Scraper

epctex/paperbackswap-scraper

3 days trial then $20.00/month - No credit card required now

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!

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

from apify_client import ApifyClient

# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "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 },
}

# Run the Actor and wait for it to finish
run = client.actor("epctex/paperbackswap-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
Developer
Maintained by Community
Actor stats
  • 4 users
  • 328 runs
  • Modified about 9 hours ago

You might also like these Actors