Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 00b9082

Browse files
changes made
1 parent 338179b commit 00b9082

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎Udemy Scraper/display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Function to connect to the SQL Database
55
def sql_connection():
66
try:
7-
con = sqlite3.connect('udemyDatabase.db')
7+
con = sqlite3.connect('./Udemy Scraper/udemyDatabase.db')
88
return con
99
except Error:
1010
print(Error)

‎Udemy Scraper/fetcher.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Function to connect to the SQL Database
1010
def sql_connection():
1111
try:
12-
con = sqlite3.connect('udemyDatabase.db')
12+
con = sqlite3.connect('./Udemy Scraper/udemyDatabase.db')
1313
return con
1414
except Error:
1515
print(Error)
@@ -32,10 +32,12 @@ def sql_insert(con, entities):
3232

3333

3434
# Get chrome driver path
35-
driver_path = input("Enter chrome driver path")
35+
driver_path = input("Enter chrome driver path: ")
36+
37+
print("\nSome Categories Available on Udemy include:\nDevelopment - Python, Web Development, Javascript, Java \nDesign - Photoshop, Blender, Graphic design\n")
3638

3739
# Get input for course category to scrape
38-
category = input("Enter course category:")
40+
category = input("Enter course category:")
3941

4042
url = 'https://www.udemy.com/courses/search/?src=ukw&q={}'.format(category)
4143

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /