Skip to content

Commit

Permalink
newtag
Browse files Browse the repository at this point in the history
  • Loading branch information
danknessdra committed Oct 16, 2022
1 parent eebe6e7 commit 55c95c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion html/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<html>
<head>


<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *;**script-src 'self' http://onlineerp.solution.quebec 'unsafe-inline' 'unsafe-eval';** ">
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="UTF-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions webscrape/webscrapeBERKELEY.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
# leading iterations

for page in range(1,332):
sleep(1.5)
sleep(3)
request=requests.get('https://classes.berkeley.edu/search/class?page=' + str(page) + '&f%5B0%5D=ts_course_level%3Agrad&f%5B1%5D=im_field_term_name%3A2729&f%5B2%5D=ts_course_level%3Alow&f%5B3%5D=ts_course_level%3Aup', headers=headers)
berksoup = BeautifulSoup(request.content,'html.parser')
results = berksoup.find_all('li', class_="search-result")
for result in results:
sleep(1.5)
sleep(3)
data = result.find("div", {"class" : regex})
if (data):
try:
Expand Down

0 comments on commit 55c95c0

Please sign in to comment.