Skip to content

Commit

Permalink
completely switched from zoro to aniwatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Wamy-Dev committed Jul 18, 2023
1 parent eec8bf8 commit 23e9c90
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Yes! You can view the documentation [here](https://docs.rakun.app). There are ot
- [x] Kato
- [x] 9Anime
- [x] Yugen
- [x] Zoro
- [x] Aniwatch
- [x] Marin [using MalSyncBackup](https://github.com/MALSync/MAL-Sync-Backup/tree/master/data/pages/Marin)
- [ ] KickAssAnimes

Expand Down
4 changes: 2 additions & 2 deletions scraper/scrapers/runScraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .spiders.kato import KatoSpider
from .spiders.nineanime import NineanimeSpider
from .spiders.yugen import YugenSpider
from .spiders.zoro import ZoroSpider
from .spiders.aniwatch import AniwatchSpider
from .spiders.marin import MarinSpider

# Manga
Expand Down Expand Up @@ -104,7 +104,7 @@ def __init__(self):
MarinSpider,
NineanimeSpider,
YugenSpider,
ZoroSpider,
AniwatchSpider,
MangadexSpider,
ComickSpider,
MangareaderSpider,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import scrapy
from scrapers.items import ScrapersItem

class ZoroSpider(scrapy.Spider):
class AniwatchSpider(scrapy.Spider):
'''
Scrapes Anime from Zoro
Scrapes Anime from Aniwatch
'''
name = "zoro"
allowed_domains = ["zoro.to", "aniwatch.to"]
start_urls = ["https://zoro.to/az-list"]
name = "aniwatch"
allowed_domains = ["aniwatch.to"]
start_urls = ["https://aniwatch.to/az-list"]
custom_settings = {
"ANIMEPIPELINE_ENABLED": True,
}
Expand All @@ -18,14 +18,14 @@ def parse(self, response):
if totalPages and currentPage:
if int(currentPage) == 1:
for pageNumber in range(2, int(totalPages) + 1):
yield scrapy.Request(url=f"https://zoro.to/az-list?page={pageNumber}")
yield scrapy.Request(url=f"https://aniwatch.to/az-list?page={pageNumber}")

animeList = response.css("a.dynamic-name")
animeItem = ScrapersItem()
for anime in animeList:
title = anime.attrib["title"]
link = f"https://zoro.to{anime.attrib['href']}"
link = f"https://aniwatch.to{anime.attrib['href']}"
animeItem["title"] = title
animeItem["link"] = {"Zoro":link}
animeItem["link"] = {"Aniwatch":link}
animeItem["type"] = "Anime"
yield animeItem

0 comments on commit 23e9c90

Please sign in to comment.