Im looking to find all the occurances of Php
on a page (ignoring case) with BeautifulSoup
in Python3
Php
(regardless of case) could occur anywhere on the page, so I am trying to basically just find the string
representation, and not within a specific div, or class.
I currently have:
from BeautifulSoup import BeautifulSoup
import requests
school_urls = ['somesite1.com','somesite2.com']
posting_keywords = ['PHP', 'Php', 'php']
for school in school_urls:
school
contains html markup from request
ing a url with words like php
in it.
How does this look to you? Is there a way to do this in Beautiful soup to find all variations of php
ignoring the case instead of having to loop through posting_keywords
?
Thanks