Skip to content

soruly/anilist-crawler

Repository files navigation

anilist-crawler

License GitHub Workflow Status

Crawl data from AniList API and store as json file.

Requirements

  • Node.js >= 22.18

How to use

Fetch anime ID 123

node index.ts --anime 123

Fetch all anime in page 240

node index.ts --page 240

Fetch all anime from page 240 to 244 (inclusive)

node index.ts --page 240-244

Fetch all anime from page 240 to the last page

node index.ts --page 240-

The output json files are saved to anilist_anime folder. You may adjust query.graphql to filter out fields that you do not want.

For details of AniList API please visit https://github.com/AniList/ApiV2-GraphQL-Docs/

You can try the interactive query tool here. https://anilist.co/graphiql

Notes

  • Anilist API has rate limit of 60 requests/min per IP address. The script will wait for a while when rate limit is reached.

About

Crawl data from anilist API and store as JSON file

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors