aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xkaminokumo5
1 files changed, 1 insertions, 4 deletions
diff --git a/kaminokumo b/kaminokumo
index 2832098..d6d7f4d 100755
--- a/kaminokumo
+++ b/kaminokumo
@@ -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="")