Skip to content

Commit

Permalink
Fixing some minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
bukosabino committed Mar 8, 2024
1 parent 777b94f commit 086df85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/etls/bopv/scrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def download_day(self, day: date) -> tp.List[BOPVMetadataDocument]:
"""Download all the documents for a specific date."""
try:
logger = lg.getLogger(self.download_day.__name__)
logger.info("Downloading BOCM content for day %s", day)
logger.info("Downloading BOPV content for day %s", day)
summary_link = self._get_summary_link_from_date(day)
if summary_link is None:
logger.info(f"No hay contenido disponible para el día {day}")
Expand Down
2 changes: 1 addition & 1 deletion src/etls/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get_headers(cls):
return headers

@staticmethod
def get_soup(url, timeout=10, markup='html.parser'):
def get_soup(url, timeout=30, markup='html.parser'):
"""
Performs an HTTP GET request to the provided URL, using random headers, and returns a BeautifulSoup
object if the response is successful. If there is an error or timeout, it throws HTTPRequestException.
Expand Down

0 comments on commit 086df85

Please sign in to comment.