It looks like you're using an Ad Blocker.
Please white-list or disable AboveTopSecret.com in your ad-blocking tool.
Thank you.
Some features of ATS will be disabled while you continue to use an ad-blocker.
"This album is a personal Facebook repository of images of strange aircraft, unusual aviation/aerospace concepts/developments, unique dirigibles and balloons, cutting-edge X-planes and other interesting items that may have an associative connection to the UFO Mystery. These have been found from all across the internet. It is shared with researchers with the intent of familiarizing them with some of the strange things that we may have put into our skies. I believe that it is beneficial for all UFO researchers/investigators to be familiar with aviation history, aircraft and other man-made things seen in the air."
from selenium import webdriver
from selenium.common.exceptions import WebDriverException
from tqdm import tqdm
import time
lines = []
Links_File =
r'E:url screenshotsLinks.txt'
OP_DIR = r'E:url screenshotsdownloads'
i = 1
S = lambda X: driver.execute_script('return document.body.parentNode.scroll'+X)
with open(Links_File, "r") as f:
lines = f.readlines()
lines = [line.rstrip() for line in lines]
options = webdriver.ChromeOptions()
options.less = True
options.add_argument('--log-level=3')
driver = webdriver.Chrome(options=options)
driver.execute_cdp_cmd('Network.setUserAgentOverride', ["userAgent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'])
print(driver.execute_script("return navigator.userAgent;"))
for link in tqdm(lines, ncols=65):
try:
driver.get(link)
time.sleep(5)
driver.set_window_size(S('Width'),S('Height')) # May need manual adjustment
driver.find_element_by_tag_name('body').screenshot(f'[OP_DIR][i].png')
i = i + 1
except WebDriverException:
print(link)
continue
driver.quit()
originally posted by: Archivalist
How will this code be utilized after it's creation?
Just want to confirm that there will be no commercial usage.
Also, it looks like you've done most of the work already. O.o
originally posted by: alphabetaone
You want to reverse search images then.....
You want a snapshot of the reverse image results?
Is that about it?
originally posted by: alphabetaone
Isaac, small update, i threw together a very crude prototype, and made a video so that you could see the process as I think i understand it to be. Before i started adding bells and whistles and such though, i just wanted to make sure I understood what your process actually is.
originally posted by: Direne
Now, let me tell you your wish list is doable, and not complex at all.
However, my friend, the image reverse searching relies on Google image search service, which wouldn't allow you to perform multiple search before signalling your calling application as hostile. The number of queries per minute is strongly limited by Google.
This would require a new module to change IP, say, after 20 queries, which would slow down the entire process.
A different approach is just to preprocess and normalize the input images (no color (is color really important at all??), edge detection, some comforter here and there, and only then query Google reverse image service).
Tell me, is the requirement of using Python (a language for kids) a must?
originally posted by: Direne
a reply to: IsaacKoi
Tell me, is the requirement of using Python (a language for kids) a must? In J language the entire thing could be coded in less than 30 lines, including a routine to educate input images (decreasing depth level, performing edge detection, and so on).
originally posted by: Direne
a reply to: Pretzelcoatl
I knew there would be trouble... Yes: any language would do the job.