diff options
Diffstat (limited to '')
-rwxr-xr-x | kaminokumo | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -3,13 +3,10 @@ import argparse import json import code -import readline import signal import sys import os import requests -import urllib3 -from time import sleep from bs4 import BeautifulSoup import subprocess import re @@ -87,7 +84,7 @@ def manga_scrape(): search = soup.find_all("a", class_="chapter-name text-nowrap") re_res = [] for thing in search: - re_res.append(re.findall("Chapter [0-9]*[\.[0-9]*]?", thing.text)) + re_res.append(re.findall("Chapter [0-9]*[.[0-9]*]?", thing.text)) # print(name, "-->", re_res[0][0]) result += name + "-->" + re_res[0][0] + "\n" print(result, end="") |