Skip to content

Commit

Permalink
Changed the bio selector.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza5 committed Dec 22, 2024
1 parent fd166d7 commit 5081039
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ app.*.map.json
/android/app/release

*cookies.json

.venv/
2 changes: 1 addition & 1 deletion scrapers.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def scrap_profile(self, url: str):
main_section = page.locator("main section")
self.name = main_section.locator("h1").text_content().strip()
self.profile_picture_url = main_section.locator(".profile-photo-edit img").get_attribute("src")
self.about = main_section.locator(".text-body-medium").text_content().strip()
self.about = main_section.locator("div.text-body-medium").text_content().strip()
self.connection_count = int(main_section.locator("a[href*='connections'] .t-bold").text_content().strip())
self.affiliations = [
{
Expand Down

0 comments on commit 5081039

Please sign in to comment.