Last active
September 13, 2024 22:03
-
-
Save AdelMmdi/65dcb364e5a5ce3e05f6698f32d5b155 to your computer and use it in GitHub Desktop.
Recon link Website Google filter and extract need to download point
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from googlesearch import search | |
| blackfile = open("black_links.txt", 'r') | |
| blacklinks = [line.split(',') for line in blackfile.readlines()] | |
| whitefile = open("white_links.txt", 'r') | |
| whitelinks = [line.split(',') for line in whitefile.readlines()] | |
| def reading(query, link): | |
| i=0 | |
| links = {} | |
| for wl in whitelinks: | |
| w=wl[0].strip() | |
| for bl in blacklinks: | |
| b=bl[0].strip() | |
| if b != link[:len(b)] and w == link[:len(w)]: | |
| print(link[:]) | |
| links[i]=link | |
| i+=1 | |
| if i == 30: | |
| print(links) | |
| return 1 | |
| with open('films.txt', 'r') as f: | |
| for query in f: | |
| goo=search("%s دوبله"% query) | |
| for link in goo: | |
| reading(query, link) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment