Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/squishy123/twist-scraper
Scraper Endpoints for twist.moe
https://github.com/squishy123/twist-scraper
anime javascript nodejs puppeteer scraping
Last synced: 13 days ago
JSON representation
Scraper Endpoints for twist.moe
- Host: GitHub
- URL: https://github.com/squishy123/twist-scraper
- Owner: Squishy123
- License: agpl-3.0
- Created: 2019-04-06T22:13:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-07T18:01:16.000Z (over 5 years ago)
- Last Synced: 2024-10-25T19:48:12.220Z (2 months ago)
- Topics: anime, javascript, nodejs, puppeteer, scraping
- Language: JavaScript
- Size: 99.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twist-scraper
Scraper for twist.moe### Features
* Scrape Search Results
* Get anime metadata
* Get sources for a given episode### Install
```
npm install twist-scraper --save
```
or
```
yarn add twist-scraper
```### How To Use
Use the scraper to get a list of search results based on a keyword query
```javascript
const scraper = require('twist-scraper');(async() => {
let result = await scraper.getSearch(query, options);
console.log(result)
})();```
Use the scraper to get anime metadata
```javascript
const scraper = require('twist-scraper');(async() => {
let sources = await getSearch(animeID, options);
console.log(src)
})();```
Use the scraper to get a list of episode sources
```javascript
const scraper = require('twist-scraper');(async() => {
let sources = await getSearch(slug, episodeNumber, options);
console.log(src)
})();```
### License
AGPL-3.0