Please help! Making web scrapper | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please help! Making web scrapper

Hi, all, In this function: def extract_job (html): title = html.find ("div", {"class":"-title"}) print (title) I'm getting an error as below: TypeError: slice indices must be integers or None or have an __index__ method I'm not sure why this is happening because the same function structure worked on another website! I'm attaching the link to the whole folder. It's in so.py line 21. https://repl.it/@AllieLim/Practice0 Please help!

14th Dec 2019, 10:40 PM
Allie L
Allie L - avatar
1 Answer
+ 1
Where are you trying to run this code? 'cause on that website, it ain't raising errors!
21st Dec 2019, 6:24 AM
Шащи Ранжан
Шащи Ранжан - avatar