Fazal00007 / 9AnimeDev

A 9anime.dev scrapper module for python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

9AnimeDev

A 9anime.dev scrapper module for python.

Available in programming languages:

1. Python
2. Node.JS

Installation

Installing through pip for python.

pip install animedev

Installing through npm for node.js.

npm install animedev

Cloning using git.

for python:

git clone https://github.com/SastaDev/9AnimeDev/for_python

for node.js:

git clone https://github.com/SastaDev/9AnimeDev/for_node

How To Use?

The python way: Check out examples.py inside for_python folder.

Examples.py:

from animedev import client, exceptions

def search_anime(anime_name):
    try:
        anime = client.search(anime_name)
        text = f'''
Anime Title: {anime['AnimeTitle']}

Anime Link: {anime['AnimeLink']}

Anime Image: {anime['AnimeImg']}

Search Query: {anime['Search_Query']}
'''

        print(text)
    except exceptions.NotFound as e:
        print(e)
        return

# Searching anime.
search_anime('Doraemon') # Add your anime name instead of Doraemon.

To check version of animedev.

# Printing version of animedev.
import animedev
print(animedev.__version__)

The node.js way:

Check out examples.js inside for_node folder.

Examples.js

const animedev = require('animedev')

const AnimeDevClient = new animedev.client()

try {
    // Searching anime.
    const anime = AnimeDevClient.search('Doraemon') // enter your anime name instead of Doraemon.
    console.log(anime)
} catch (err) {
    console.log(err)
}

To check version of animedev.

// Printing version of animedev.
const animedev = require('animedev')
console.log(animedev.version)

Thanks

Thanks to @itspro-dev for 9anime.dev. Thanks to @SastaDev for this scrapper.

© Sasta Network 2022.

About

A 9anime.dev scrapper module for python.

License:Apache License 2.0


Languages

Language:Python 59.1%Language:JavaScript 40.9%