Skip to content

Commit

Permalink
Merge pull request #2158 from jere344/patch-2
Browse files Browse the repository at this point in the history
Update novelgate url
  • Loading branch information
dipu-bd authored Oct 7, 2023
2 parents 22c889c + 751f626 commit b15c245
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sources/en/n/novelgate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
from lncrawl.core.crawler import Crawler

logger = logging.getLogger(__name__)
search_url = "https://novelgate.net/search/%s"
search_url = "%ssearch/%s"


class NovelGate(Crawler):
base_url = "https://novelgate.net/"
base_url = [
"https://novelgate.net/",
"https://home.novel-gate.com/",
]

def search_novel(self, query):
query = query.lower().replace(" ", "%20")
soup = self.get_soup(search_url % query)
soup = self.get_soup(search_url % (self.home_url, query))

results = []
for tab in soup.select(".film-item"):
Expand Down

0 comments on commit b15c245

Please sign in to comment.