Skip to content
Advertisement

How to search multiple predefined string in a webpage using request and beautifulsoup in python

I wanted to search a page for multiple strings that contains a predefined pattern. Currently, my code seems problematic.

JavaScript

Current Output:

JavaScript

Wanted Output:

JavaScript

Advertisement

Answer

Here a sample example on how use the modules, it could be even the solution. Sorry but no ideas of what do you really want… but I hope it helps you anyway

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement