It is not as simple as it first appeared, and I would like to pose some extremely basic questions about the technology in the hopes of receiving some extremely basic answers. I want to get the job done, so I can cut a few corners; the job is massive and will run overnight on this laptop and 24/7 on two other laptops. It is way faster than the manual copy/paste fraught with human errors method employed to date, so timing is not ultra-critical. Non-stop running is critical.
Question 1: Chrome Browser, DuckDuckGo search engine. Search element INSPECT
With a right-click I choose Inspect in the search box of the home page for DuckDuckGo and then Edit Html and see this:
Code: Select all
<input id="search_form_input_homepage" class="js-search-input search__input--adv" type="text" autocomplete="off" name="q" tabindex="1" value="" autocapitalize="off" autocorrect="off" placeholder="Search the web without being tracked">
Code: Select all
<input type="text" name="q" tabindex="1" autocomplete="off" id="search_form_input" class="search__input--adv js-search-input" value="search terms" autocapitalize="off" autocorrect="off">
Rather than code two separate chunks of code – one for "search_form_input_homepage" and one for "search_form_input" – I am inclined to make a fake at the first search, and use only the second search box for my searches, so that my code is always dealing with a standard search box – the second html code shown above "search_form_input".
Are there any known downfalls in this approach?
The slight extra time to institute a dummy search is trivial to me. Being able to use a single working chunk of code to access as many search engines as I care to access, through as many browsers as I can, is important. Simplicity of code is the watchword.
Thanks
Chris