Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ldd/anime_rankings
anime rankings fetcher for MAL
https://github.com/ldd/anime_rankings
Last synced: 8 days ago
JSON representation
anime rankings fetcher for MAL
- Host: GitHub
- URL: https://github.com/ldd/anime_rankings
- Owner: ldd
- Created: 2019-09-01T16:02:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T10:20:38.000Z (over 3 years ago)
- Last Synced: 2024-10-27T15:51:36.861Z (about 2 months ago)
- Language: JavaScript
- Size: 88.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Anime ranking crawler
This small collection of scripts will fetch data from [MAL](https://myanimelist.net/) every day.
The idea is to get the daily score changes for each airing show.
If you have an instance on GCP, Azure, AWS, etc, simply run
> `PG_PASSWORD=hunter2 ./scripts/setup.sh`
to install everything on your host, create a systemd service, etc.
If you only want to crawl things once, or have no need for a service:
1. `yarn`
2. `PGPASSWORD=hunter2 node creator.js`
3. `PGPASSWORD=hunter2 node crawler.js`> Notice that the underscore from `PG_PASSWORD` is gone. This is intentional
## Other useful commands:
- check the state of systemd timers
`systemctl list-timers`
- copy files to a GCP instance (e.g: `interceptor-01`)
`gcloud compute scp --recurse git/anime_rankings/scripts worker@interceptor-01:~/git/anime_rankings`
- [dump database](https://www.postgresql.org/docs/8.0/backup.html)
`pg_dump $PG_USER > dump.sql`
- [restore from dump](https://www.postgresql.org/docs/8.0/backup.html)
`psql $PG_USER < dump.sql`