Skip to content

Commit

Permalink
[FIX] update dependencies and increase dom loading time
Browse files Browse the repository at this point in the history
  • Loading branch information
wael-sudo2 committed Oct 20, 2024
1 parent a6e8e8a commit fcf52fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
#if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions facebook_page_info_scraper/facebook_page_info_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __private_fetch_page_name(self) -> str | None:

def __private_fetch_basic_info_web_element(self) -> WebElement | None:

WebDriverWait(self.driver, 3).until(
WebDriverWait(self.driver, 5).until(
EC.presence_of_element_located((By.TAG_NAME, 'body'))
)
try:
Expand All @@ -103,7 +103,7 @@ def __private_fetch_basic_info_web_element(self) -> WebElement | None:
# fetch css layout 1 or 2
def __private_fetch_css_layout(self):
self.driver.get(self.__private_clean(self.link))
WebDriverWait(self.driver, 3).until(
WebDriverWait(self.driver, 5).until(
EC.presence_of_element_located((By.TAG_NAME, 'body'))
)
try:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ install_requires =
retry~=0.9.2
selenium~=4.8.2
googletrans~=4.0.0rc1

webdriver-manager~=4.0.2
python_requires = >=3.10

0 comments on commit fcf52fd

Please sign in to comment.