|
1 | 1 | from bs4 import BeautifulSoup
|
2 |
| -import requests |
3 | 2 | import time
|
4 | 3 | from openpyxl import Workbook
|
5 | 4 | import pandas as pd
|
@@ -28,10 +27,9 @@ def xcelSheet():
|
28 | 27 |
|
29 | 28 | wb = Workbook()
|
30 | 29 | 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') |
35 | 33 |
|
36 | 34 | for i in range(0, df.__len__()):
|
37 | 35 | sheet1.cell(i + 2, 1, df['Question Name'][i])
|
@@ -143,7 +141,7 @@ def getData():
|
143 | 141 | return
|
144 | 142 |
|
145 | 143 | except Exception as e:
|
146 |
| - print("Some error osccured, error: ", e) |
| 144 | + print("Some error occured, error: ", e) |
147 | 145 | return
|
148 | 146 |
|
149 | 147 |
|
|
0 commit comments