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!
1 Antwort
+ 1
Where are you trying to run this code? 'cause on that website, it ain't raising errors!