Skip to content

Commit

Permalink
fix: extend default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
orkr3426 committed Feb 6, 2025
1 parent d693c84 commit 6278290
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/agents/scrapers/university_of_british_columbia.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ async def fetch_courses(self) -> CourseListingModel:
"total_sections": self.totalSections
}

with open('data.json', 'w') as f:
json.dump(data, f)

# for d in r:
# data['semester'] = d['semester']
# data['programs'].extend(d['programs'])
Expand Down Expand Up @@ -154,6 +151,8 @@ async def fetch_courses_e(self, page, pageNum) -> CourseListingModel:
"width": 500,
"height": 800,
})
page.set_default_timeout = 60000
page.set_default_navigation_timeout = 60000
await page.goto(self.base_url)
await self.setupPage(page, pageNum)

Expand Down

0 comments on commit 6278290

Please sign in to comment.