This API can scrape both ffnet and ao3 fanfiction metadata. Currently it can search for ao3 works, series and ffnet stories.
- Install all the dependencies using
pip install -r requirements.txt
- Then run
main.py
and the API will be accessible at0.0.0.0:5000
. See the examples below.
To search using the API, you need to host the API in your server. I will use localhost for the examples below.
https://0.0.0.0:5000/search?=ao3 Prince of Slytherin
https://0.0.0.0:5000/search?=ao3 Prince of Slytherin series
https://0.0.0.0:5000/search?=ffn cadmean victory
https://0.0.0.0:5000/search?=https://www.fanfiction.net/s/11446957/1/A-Cadmean-Victory