Skip to content

Commit

Permalink
fix package bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Apr 23, 2023
1 parent 38ac36a commit 061f60c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
requests==2.28.2
pytelegrambotapi==4.10.0
beautifulsoup4==4.12.0
pytelegrambotapi==4.11.0
beautifulsoup4==4.12.2
tgbot-ping==1.0.7
redis==4.5.4
apscheduler==3.10.1
pymongo==4.3.3
tornado==6.2
tornado==6.3
captcha==0.4
passlib==1.7.4
fakeredis==2.10.3
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
EMAIL = "[email protected]"
AUTHOR = "BennyThink"
REQUIRES_PYTHON = ">=3.6.0"
VERSION = "1.0.0"
VERSION = "1.0.1"

# What packages are required for this module to be executed?
REQUIRED = ["requests"]
Expand Down
12 changes: 5 additions & 7 deletions yyets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@

logging.basicConfig(
level=logging.INFO,
format='[%(asctime)s %(filename)s:%(lineno)d %(levelname).1s] %(message)s',
datefmt="%Y-%m-%d %H:%M:%S"
format="[%(asctime)s %(filename)s:%(lineno)d %(levelname).1s] %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
)


class Resource:

def __init__(self):
self.enname = None
self.cnname = None
Expand All @@ -39,9 +38,8 @@ def __init__(self, keyword: "str"):

def search(self):
data = requests.get(self.search_api).json()
for item in data["data"]:
for info in data["data"]:
r = Resource()
info = item["data"]["info"]
setattr(r, "list", self.fetch(info))
for k, v in info.items():
setattr(r, k, v)
Expand All @@ -58,7 +56,7 @@ def __str__(self):
return f"{self.keyword} - {self.search_api}"


if __name__ == '__main__':
ins = YYeTs("逃避")
if __name__ == "__main__":
ins = YYeTs("逃避可耻")
for i in ins.result:
print(i)

0 comments on commit 061f60c

Please sign in to comment.