I wanted to improve the snippet below by passing in multiple strings to search ("English Subtitles", "1080", "2021") in the webpage. Currently, it works with single string search.
import requests
url = 'http://www.allyoulike.com/'
r = requests.get(url)
singlesearchstring = "2021"
multiplesearchstring = "English Subtitles", "4080", "2021"
if (stringtosearch) in r.text:
print ('Found ',singlesearchstring )
else:
print ('Not Found ', singlesearchstring)
Wanted Output:
Search Results:
English Subtitles - Found
4080 - Not Found
2021 - Found