Skip to content

Commit aef306c

Browse files
committed
leetcode scraper modified
1 parent 22bb6e4 commit aef306c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Python/scraper/LeetCode Top Interview Questions.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from bs4 import BeautifulSoup
2-
import requests
32
import time
43
from openpyxl import Workbook
54
import pandas as pd
@@ -28,10 +27,9 @@ def xcelSheet():
2827

2928
wb = Workbook()
3029
sheet1 = wb.create_sheet(sheetName)
31-
sheet1.cell(1, 1, 'Question Number')
32-
sheet1.cell(1, 2, 'Question Name')
33-
sheet1.cell(1, 3, 'Question URL')
34-
sheet1.cell(1, 4, 'Question Difficulty')
30+
sheet1.cell(1, 1, 'Question Name')
31+
sheet1.cell(1, 2, 'Question URL')
32+
sheet1.cell(1, 3, 'Question Difficulty')
3533

3634
for i in range(0, df.__len__()):
3735
sheet1.cell(i + 2, 1, df['Question Name'][i])
@@ -143,7 +141,7 @@ def getData():
143141
return
144142

145143
except Exception as e:
146-
print("Some error osccured, error: ", e)
144+
print("Some error occured, error: ", e)
147145
return
148146

149147

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy