- Is it .difference only works for sets rather than lists? Is there an equivalent for lists?
Thanks a lot 🙂
What you can try is to pretend to be a browser, and then export the HTML file you received using requests-html to identify any problems.
2. The “.difference” method indeed only works for sets. There is no equivalent method for lists, however, this can easily be achieved with a list comprehension. E.g.