Skip to main content

動畫瘋爬蟲工具

Project description

anigamerpy 0.1.0

動畫瘋爬蟲工具

下載

pip install anigamerpy

使用方式

本模組可獲取兩種資料

  • 新番資料

即動畫瘋首頁的所有動畫

from anigamerpy import anime
from loguru import logger

data = anime.Anime().new_anime().data

#0為第一筆資料 1為第二筆資料 以此類推
logger.info(data[0]['name']) #動畫名
logger.info(data[0]['watch_count']) #目前觀看次數
logger.info(data[0]['episode']) #目前集數
logger.info('https://ani.gamer.com.tw/' + data[0]['href']) #超連結 若要完整連結前面需加https://ani.gamer.com.tw/
logger.info(data[0]['image']) #圖片
  • 搜尋資料

獲取搜尋的結果

from anigamerpy import anime
from loguru import logger

data = anime.Anime().search_anime(keyword='bang dream').data #需加入搜尋關鍵字 請使用字串來搜尋

#0為第一筆資料 1為第二筆資料 以此類推
logger.info(data[0]['name']) #動畫名
logger.info(data[0]['watch_count']) #觀看次數
logger.info(data[0]['episode']) #集數
logger.info(str(data[0]['years'])[3:]) #年分
logger.info('https://ani.gamer.com.tw/' + data[0]['href']) #超連結 若要完整連結前面需加https://ani.gamer.com.tw/
logger.info(data[0]['image']) #圖片

其他

若有發現任何bug或是問題,請開issue

License

本專案使用 MIT LICENSE

MIT © Sakuya0502

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anigamerpy-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anigamerpy-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file anigamerpy-0.1.0.tar.gz.

File metadata

  • Download URL: anigamerpy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for anigamerpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 10cdd91ceca5970ac1f97162f712b1a5c97b9e8b5bd16666451fe9843808ea49
MD5 84e3527a15ffc3a83fbb0e22e8209d66
BLAKE2b-256 047e9d9ecd81eb6e18177fe59df53ed794a481218dcc723666e5cecfe097833a

See more details on using hashes here.

File details

Details for the file anigamerpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: anigamerpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for anigamerpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b65cb033b6cdf45a7c93f927222069c84f0889e04229c8b1dd96230bfea99dca
MD5 d0706eb4203d218f9a55f8cc11131f8e
BLAKE2b-256 c0445a7654728a857666e2a756a750fb3132e9e1b0ed189cbcd52b3211c78a00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page