Skip to content

Commit

Permalink
twine setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil25803 committed Feb 11, 2023
1 parent 0e796be commit b8f1614
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = scrape_up
version = 0.1.0
version = 0.1.1
author = Clueless Community
author_email = [email protected]
description = A web-scraping-based python package that enables you to scrape data from various platforms.
Expand Down
8 changes: 4 additions & 4 deletions src/scrape_up/github/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class Users:

def __init__(self, username:str):
def __init__(self, username: str):
self.username = username

def __scrape_page(self):
Expand All @@ -19,7 +19,7 @@ def followers(self):
"""
page = self.__scrape_page()
try:
followers = page.find(class_ = "text-bold color-fg-default")
followers = page.find(class_="text-bold color-fg-default")
return followers.text
except:
message = f"{self.username} not found !"
Expand All @@ -31,9 +31,9 @@ def get_avatar(self):
"""
page = self.__scrape_page()
try:
avatar = page.find(class_ = "avatar avatar-user width-full border color-bg-default")
avatar = page.find(
class_="avatar avatar-user width-full border color-bg-default")
return avatar["src"]
except:
message = f"Avatart not found for username {self.username}"
return message

0 comments on commit b8f1614

Please sign in to comment.