Skip to content

Commit

Permalink
modified function to accept urls as a post request
Browse files Browse the repository at this point in the history
  • Loading branch information
star-nox committed Feb 28, 2024
1 parent fbcdd05 commit 9bc772f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ai_ta_backend/crawlee_ext_scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ def crawlee_scrape(course_name: str, urls: list):
This function takes in a pre-defined set of URLs and scrapes the content from each URL.
"""
print("Scraping URLs:", urls)
print("Course Name:", course_name)
exit()


payload = {
"params": {
"url": "",
"scrapeStrategy": "equal-and-below",
"match": "",
"maxPagesToCrawl": 20000,
"maxPagesToCrawl": 10000,
"maxTokens": 2000000,
"courseName": course_name
}
Expand Down

0 comments on commit 9bc772f

Please sign in to comment.