aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-03-12 07:34:42 +0000
committerterminaldweller <thabogre@gmail.com>2021-03-12 07:34:42 +0000
commit91c86206f64bb47eb28a55d7e4fbd74de94fcad5 (patch)
tree45251b5287ae22490dfb6771d71723f9fa2a9e85
parentfixed a bug where if you symlnked kaminokumo, it wouldnt work properly (diff)
downloadkaminokumo-91c86206f64bb47eb28a55d7e4fbd74de94fcad5.tar.gz
kaminokumo-91c86206f64bb47eb28a55d7e4fbd74de94fcad5.zip
some PEP8 cleanup
-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="")