electrons

[help]get Google search suggestions

4 posts in this topic

hello everyOne :)

how can i get Google search suggestions while typing text

and save it to txt file

Untitled.png.f8f87493a19fc87f80b2d93795e

Share this post


Link to post
Share on other sites



is that impossible? 

any idea please?! 

Share this post


Link to post
Share on other sites
<div class="gstl_0 sbdd_a" style="left: 0px; top: 39px; text-align: left; position: absolute; min-width: 590px;" dir="ltr"><div class="fl"></div><div><div class="sbdd_b"><div class="sbsb_a"><ul class="sbsb_b" role="listbox"><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse0" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> poradnik</b></div></div></li><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse1" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> kurs pdf</b></div></div></li><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse2" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> skrypty</b></div></div></li><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse3" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> download</b></div></div></li></ul></div></div><div><div class="sft" id="pocs" style="left: 0px; margin-top: 10px; white-space: nowrap; position: absolute; z-index: 987;"><div id="pocs0" style="display: none;"><span><span>Google</span> Wyszukiwanie dynamiczne jest niedostępne. Naciśnij Enter, aby wyszukać.</span>&nbsp;<a href="//support.google.com/websearch/answer/186645?hl=pl">Więcej informacji</a></div><div id="pocs1" style="display: none;"><span>Google</span> Wyszukiwanie dynamiczne jest nieaktywne z powodu wolnego połączenia. Naciśnij Enter, aby wyszukać.</div><div id="pocs2">Naciśnij Enter, aby wyszukać.</div></div></div></div></div>

Yest it is possible.

<div class="sbqs_c">autoit<b> poradnik</b></div>
<div class="sbqs_c">autoit<b> kurs pdf</b></div>
<div class="sbqs_c">autoit<b> skrypty</b></div>
<div class="sbqs_c">autoit<b> download</b></div>

Try to use RegExp:

(?i)(?:<div class="sbqs_c">)(.*?)(?:</div>)

Quote

autoit<b> poradnik</b>
autoit<b> kurs pdf</b>
autoit<b> skrypty</b>
autoit<b> download</b>

 

1 person likes this

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites
11 hours ago, mLipok said:
<div class="gstl_0 sbdd_a" style="left: 0px; top: 39px; text-align: left; position: absolute; min-width: 590px;" dir="ltr"><div class="fl"></div><div><div class="sbdd_b"><div class="sbsb_a"><ul class="sbsb_b" role="listbox"><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse0" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> poradnik</b></div></div></li><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse1" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> kurs pdf</b></div></div></li><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse2" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> skrypty</b></div></div></li><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse3" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> download</b></div></div></li></ul></div></div><div><div class="sft" id="pocs" style="left: 0px; margin-top: 10px; white-space: nowrap; position: absolute; z-index: 987;"><div id="pocs0" style="display: none;"><span><span>Google</span> Wyszukiwanie dynamiczne jest niedostępne. Naciśnij Enter, aby wyszukać.</span>&nbsp;<a href="//support.google.com/websearch/answer/186645?hl=pl">Więcej informacji</a></div><div id="pocs1" style="display: none;"><span>Google</span> Wyszukiwanie dynamiczne jest nieaktywne z powodu wolnego połączenia. Naciśnij Enter, aby wyszukać.</div><div id="pocs2">Naciśnij Enter, aby wyszukać.</div></div></div></div></div>

Yest it is possible.

<div class="sbqs_c">autoit<b> poradnik</b></div>
<div class="sbqs_c">autoit<b> kurs pdf</b></div>
<div class="sbqs_c">autoit<b> skrypty</b></div>
<div class="sbqs_c">autoit<b> download</b></div>

Try to use RegExp:

(?i)(?:<div class="sbqs_c">)(.*?)(?:</div>)

 

Thank you so much mLipok God bless you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Similar Content

    • algiuxas
      By algiuxas
      Hello everybody, so I might found a bug in _ArraySearch:
       
      #include <Array.au3> Local $abc[2] = ["b", "b"] $h = "+---------------------------------+" & @CRLF ConsoleWrite($h) For $i = 0 To 1 $abc[0] = 0 out() $abc[0] = 1 out() $abc[0] = -1 out() $abc[0] = "Abc" out() $abc[1] = "Hello" Next Func txt() Return "$abc = [" & $abc[0] & ", " & $abc[1] & "]" & @CRLF & _ "> _ArraySearch($abc,""Hello"") = " EndFunc ;==>txt Func shouldoutput($ans) Return "_ArraySearch Should return: " & ($ans ? 1 : -1) EndFunc ;==>shouldoutput Func out() ConsoleWrite("> " & txt() & _ArraySearch($abc, "Hello") & @CRLF & "> " & shouldoutput($abc[1] == "Hello") & @CRLF & $h) EndFunc ;==>out Exit Sorry for this messy script
    • wakillon
      By wakillon
      Mp3SearchEngine v2.0.0.6

      May be some of you know Songr .
      This script do the same job, it can find more mp3 files but is not as fast as Songr.
       
       



      Sites used are music search engine Websites designed for LEGAL entertainment purposes only.
      Thanks to Brett Francis, Prog@ndy and Eukalyptus for >Bass Udf, trancex for >WinHttp Udf and the AutoIt Community for his help.

       
      Changes of v1.0.8.5
       
      Three websites replaced cause they are dead or use now js.
      All search engines updated ( not without difficulties for audiodump)
      I use RAGrid.dll for the first listview (more fast and stable, but with some inconvenients to manage the no-edit of cells)
      Input queries are saved ( the twenty latest)
      I use now an mp3 pre-Load management before playing and a double progressbar for visualize pre-load and play, where you can click for directly go play in the loaded part.
      Most includes needed are embedded and all external files are embedded in script with >BinaryToAu3Kompressor .
      Multi downloads available with embedded downloader.exe
       
      Changes of v1.0.8.8
      Search on audiodump and myfreemp3 fixed.
      New buttons.
      Added Gui Menu.
      Titles are no more editable.
      New "About" with >TaskDialog (Thanks Prog@andy)
      Query button permit now to check / uncheck all checkboxes
      And some few fixes and cleaning.
      Really more stable now.
      Changes of v1.0.9.2
      Dilandau is replaced by mp3chief and mp3ili by mp3clan 
      Search on mp3juices, baseofmp3 and soundcloud fixed.
      Soso now provide m4a (aac) instead of mp3 ( m4a can be played by MSE)
      Added possibility to encode automaticaly to mp3, aac or ogg ( at the end of download) using bassenc.dll and command line tools : lame, faac and oggenc.
       
      Changes of v1.0.9.3   mp3skull fixed mp3chief fixed myfreemp3 fixed mp3clan changed to tusmp3  mp3juices changed to emp3world baseofmp3 changed to imp3 and some minor improvements.  
      Version 2.0.0.6
      Most previous websites used are dead or have changed the way to get links, 
      so instead of try to repair the previous version, i have created a complete new version.
      The main tendency is the simplification :
      Only one website : audiodump (Up to 500 results by request)
      Script use now the little pearl created by Ward : curl.au3
      It permit to create tasks (get source and get multi mp3) in asynchronous mode.
      So now, no need to use several executables and no more gui who do not respond in case of connection problems. 
      Script use Bass.dll X86 loaded in memory for play songs.
      Result is light and fast, but don't abuse of audiodump servers who are not beasts of race.
      Warning : For avoid errors with curl.au3, you'll need to comment the line 63 : ;~ #Include <BinaryCall.au3>
      @AutoItX64 not supported and only tested on Win7X64 and Win8.1X64.
      As your browser, use Ctrl+w for remove the current Tab.(if there is no search or download running from it)
      And also Ctrl+q for set/remove Gridlines.
      Events are displayed to the bottom of the Gui.
       
      Version 2.0.1.1
      Added a Paste Button.
      Querry list is now correctly saved.
      Querry Combo is now sorted in alphabetical order
      After a 'No match', the next search will use the previous empty listview.
      Bug when removing tabs is corrected.
      Added string correction for the request that, in the previous version, was not always able to return a correct result.
       
      A big thanks to Ward for his great UDF, and Nina my favorite tester, (who between us is also my third daughter), for his precious advices .
      previous downloads : 1703
       
      As there is no more script downloads count, source and executable are available in the downloads section

      Enjoy ! 
      July 2017 Project Discontinued due to website changes
    • jonson1986
      By jonson1986
      Hello,
      I'm trying to translate with google translator but not able to translate my text file from Russian to English and my output saved in text file is 0 instead of any translated text.
      I'm using a text file which contains 5 lines of Russian language and I want to translate it into English language and want to save it in other text file translated.txt but I'm not able to let it happen.
      Please help me how can I make this possible same code was working several months ago but not now especially don't know what's going wrong with my code of google translator.
       
      Here are my codes
      #RequireAdmin #include <IE.au3> #include <String.au3> #include <Array.au3> ProcessClose ( 'iexplore.exe') $File1 = @ScriptDir & "\kat01.txt" $txt = FileRead($File1) ;-------------------------------Translation Started------------------------- Local $tag="* # * # *" Local $oIE=_IECreate("https://translate.google.com/#ru/en", 1, 1) Local $oForm=_IEFormGetCollection($oIE,0) Local $oQuery=_IEGetObjByName($oForm,"text") _IEFormElementSetValue($oQuery, $tag & @CR & $txt & @CR & $tag) _IEFormSubmit($oForm) _IELoadWait($oIE) Local $oText=_IEGetObjById($oIE,"gt-res-data") $lines=StringSplit(_IEPropertyGet($oText,"innerText"),@CRLF,1) ;_IEQuit($oIE) _ArrayDelete($lines,_ArraySearch($lines,$tag,1,0,0,1,0) & "-" & $lines[0]) _ArrayDelete($lines,"1-" & _ArraySearch($lines,$tag,1,0,0,1,1)) $lines[0]=UBound($lines)-1 _ArrayDisplay($lines) Local $sFilePath = @ScriptDir & "\Translated.txt" _FileWriteFromArray($sFilePath, $lines, 1)  
    • LeloDragneel
      By LeloDragneel
      Hey guys,
      I'm looking to implement an accurate voice recognition method in my program. I tried to understand the Microsoft SAPI API, read their online documentation and found it very confusing and unclear. (Like seriously, it's so bad and vague, but that's just my opinion). I have also tried using UTTER UDF, but could not get a grasp either, because you know, that's an extension UDF to Microsoft SAPI.
      Let's face it, the Google Speech Recognition is much more accurate than Microsoft SAPI (by far). Right now, I am determined to just use the Google Speech API. I have dug deep in regards to implementing the Google Speech API in AutoIT and I haven't found even one post about it. I suppose it's because the Google Speech API was only recently made available to the public. In case you don't know what I'm talking about, here's the link to google api. On that page, notice that there is language support for various languages such as Java, C#, and PHP. However, there's no support for AutoIT. So my question is; how can I go about implementing the Google Speech API into my AutoIT program? Is it even possible?
      Cheers guys!
    • Mr_Was_geht_sie_das_an
      By Mr_Was_geht_sie_das_an
      Hi Autoit Community,
      do someone know, if is possible to creat an 3D-ModelSearch script ?