Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil25803 authored Feb 24, 2023
2 parents 02bf07c + 7fc311c commit 3a36a31
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ user = github.Users(username="nikhil25803")
| `.get_followers()` | Returns the list of followers of a user. |
| `.get_following_users()` | Returns the list of users followed by a user. |
| `.get_achievements()` | Returns the list of achievements of an user. |
| `.get_status()` | Returns the status of an user. |
-----

### Scrape Repository details
Expand Down
13 changes: 13 additions & 0 deletions src/scrape_up/github/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def get_following_users(self):
except:
message = f"Following users not found for username {self.username}"
return message

def company(self):
page=self.__scrape_following_page()
try:
Expand All @@ -260,4 +261,16 @@ def company(self):
# print(page.find_all("a"))
except:
message=f"Following users not found for username {self.username}"
return message



def get_status(self):
try:
data=self.__scrape_page()
t=data.find("div",class_="user-status-container position-relative hide-sm hide-md")
return t.text.strip().replace('\n','')
except:
message=f"Status not found for username {self.username}"
return message

0 comments on commit 3a36a31

Please sign in to comment.