Remove blocked sites from "Images" search bar
This commit is contained in:
parent
500942cb99
commit
672e0568d3
|
@ -363,6 +363,9 @@ class Filter:
|
|||
|
||||
# get some tags that are unchanged between mobile and pc versions
|
||||
search_input = soup.find_all('td', attrs={'class': "O4cRJf"})[0]
|
||||
|
||||
search_input=BeautifulSoup(re.sub(r'(\s)-site:[a-zA-Z0-9_\.]+', '',
|
||||
str(search_input)),'lxml')
|
||||
search_options = soup.find_all('div', attrs={'class': "M7pB2"})[0]
|
||||
cor_suggested = soup.find_all('table', attrs={'class': "By0U9"})
|
||||
next_pages = soup.find_all('table', attrs={'class': "uZgmoc"})[0]
|
||||
|
|
Loading…
Reference in New Issue
Block a user