Fiverr API Scraper is a Python library that allows you to extract detailed information from Fiverr fluently without
any restriction. It returns JSON
responses and BS4-HTML-SOUP
according to your will.
- Extract detailed information from Fiverr; gig, recommendations, profiles, bios and all.
- No restrictions
- ScraperAPI supported
You can install the Fiverr API Scraper using pip:
pip install fiverr-api
Below are examples of how to use the Fiverr API Scraper to extract data from Fiverr gig pages and user profiles.
from fiverr_api import session
session.set_scraper_api_key("XYZ-SCRAPER_API_KEY")
response = session.get("https://www.fiverr.com/username/your-gig-slug") # your fiverr url should be here
json_data = response.props_json() # gives you JSON
print(response.soup) # gives you beautiful soup instance
# You can use `response.soup` to further extract your information.
Get your ScraperAPI key here.
The Fiverr API Scraper is organized into several modules to enhance code readability and maintainability:
fiverr_api
__init__.py
: For exportingsession
fiverr_api.utils
req.py
: Extending requests for Fiverr scrapingscrape_utils.py
: Utilities for scraping
scraper.py
gives you a function named get_perseus_initial_props()
which returns the initial props of
the Fiverr page. This function is used by the modules to extract initial JSON
data.
New pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Check more of my projects.