File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Python/Internshala_Scrapper Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 26
26
"Content Writing Internship" : "https://internshala.com/internships/content%20writing-internship" ,
27
27
"Civil Internship" : "https://internshala.com/internships/civil-internship" ,
28
28
}
29
- x = 1
30
- for item in dict .keys ():
31
- print (x , item )
32
- x += 1
29
+ for index ,item in enumerate (dict ):
30
+ print (index + 1 , item )
31
+
33
32
ch = int (input ("Enter the categroy. eg 1 for Computer Science : " ))
34
33
url = dict [dict0 [ch ]]
35
34
print ("--------URL : " + url )
56
55
locations = data .findAll ("div" , {"id" : "location_names" })
57
56
details = data .findAll ("div" , {"class" : "internship_other_details_container" })
58
57
links = data .findAll ("a" , {"class" : "view_detail_button" })
59
- for x in range (0 , len (companies )):
58
+ for x in range (len (companies )):
60
59
company = companies [x ].text .strip ()
61
60
profile = profiles [x ].text .strip ()
62
61
location = locations [x ].text .strip ()
75
74
info .append (extracted [5 ])
76
75
info .append (link )
77
76
writer .writerow (info )
78
- input ("Done!\n All the best ;-)" )
77
+ print ("Done!\n All the best ;-)" )
You can’t perform that action at this time.
0 commit comments