Skip to content

Commit b8f1614

Browse files
committed
twine setup
1 parent 0e796be commit b8f1614

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = scrape_up
3-
version = 0.1.0
3+
version = 0.1.1
44
author = Clueless Community
55
author_email = official.cluelesscommunity@gmail.com
66
description = A web-scraping-based python package that enables you to scrape data from various platforms.

src/scrape_up/github/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class Users:
66

7-
def __init__(self, username:str):
7+
def __init__(self, username: str):
88
self.username = username
99

1010
def __scrape_page(self):
@@ -19,7 +19,7 @@ def followers(self):
1919
"""
2020
page = self.__scrape_page()
2121
try:
22-
followers = page.find(class_ = "text-bold color-fg-default")
22+
followers = page.find(class_="text-bold color-fg-default")
2323
return followers.text
2424
except:
2525
message = f"{self.username} not found !"
@@ -31,9 +31,9 @@ def get_avatar(self):
3131
"""
3232
page = self.__scrape_page()
3333
try:
34-
avatar = page.find(class_ = "avatar avatar-user width-full border color-bg-default")
34+
avatar = page.find(
35+
class_="avatar avatar-user width-full border color-bg-default")
3536
return avatar["src"]
3637
except:
3738
message = f"Avatart not found for username {self.username}"
3839
return message
39-

0 commit comments

Comments
 (0)