Has any one wrote a bas script to find google wacks?

im just watching dave gormans googlewach adventure and i was thinking that this would be perfect for a bash script. has any one tried doing this ?
wordlist=/path/to/word/list
word1=head -n $random $worklist tail -n 1
word2=head -n $random $worklist tail -n 1
curl http://www.google.co.uk/search?source=ig&hl=en&rlz=&=&q=$word1+$word2 > google.cach
if grep "Results 1 - 1" google.cache
then goto 1
else
echo google wach found $word1 $word2
fi
so far all i have is this not proper syntax, just mental planing
Last edited by markp1989 (2009-04-29 23:34:46)

Procyon wrote:
Planning to do a million google searches? I don't think they will like that.
Anyway, you can get a random item with word1=$(sort -R "$wordlist" | head -n 1)
And you can look at a rendered google page like this:
curl -s -A 'Mozilla/4.0' 'http://www.google.co.uk/search?source=i … &rlz=&=&q='"$word1+$word2" | html2text -ascii -nobs -style compact -width 80
You have to grep that for "1 out of 1 result", but I don't know what the string is, try this with an actual googlewhack:
curl -s -A 'Mozilla/4.0' 'http://www.google.co.uk/search?source=i … ooglewhack' | html2text -ascii -nobs -style compact -width 80 | grep Results
After you get the grep, you can use grep -q and then if .......... | grep -q ........; then echo got a result for $word1 $word2; fi
EDIT:
And you might as well exchange the html2text command with just: tr '=' '\n'
EDIT2:
If you're going to make a new post, make a new post...
#!/bin/bash
wordlist=/home/mark/wordlist.txt
word1=$(sort -R "$wordlist" | head -n 1)
word2=$(sort -R "$wordlist" | head -n 1)
curl -s -A 'Mozilla/4.0' 'http://www.google.co.uk/search?source=ig&hl=en&rlz=&=&q=$word1+$word2' | html2text -ascii -nobs -style compact -width 80 > google.cache
if grep -qw "Results 1 - 1" google.cache; then
echo google wack found
echo $word1
echo $word2
else
echo $word1
echo $word2
echo is not a google wack
grep Results google.cache
echo waiting 30 seconds and trying again
sleep 30; /home/mark/google.wack
fi
so far all that happens with this is that curl searches google for $word1 and $word2 how can i get curl to use the exports?
Thanks Markp1989

Similar Messages

  • Has any one installed utl_dbws in 9.2.0.4

    has any one installed utl_dbws in 9.2.0.4 with jdk 1.3
    If so, how did you do it?
    I get a run time error oracle/jpub/runtime/dbws/DbwsProxy could not be resolved
    when i manually try to resolve it i track it down to a missing class
    ORA-29521: referenced name java/util/logging/Level could not be
    found
    this class java/util/logging/Level does not apper in the javavm until 10.2 or possibly 10.1.
    I have 9.2.0.4 database and jdk 1.3.
    also I used -genmissing with the loadjava script and i still have the same problem.
    I thought -genmissing was supposed to put a place holder in for missing classes,
    but it did not.
    Thanks for any help
    jim

    the message looks very much like the one posted at http://asktom.oracle.com/pls/ask/f?p=4950:8:5812357525663697256::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:16568950771220
    b.t.w. i don't think that any packages are missing. it seems that the XML is invalid. Did you use dbms_output commands to show the generated XML?

  • Since I updated my pages to 5.01, I can't open documents created on my iPad today. It says you need a new version of pages to open document.  (My computer says it is installed).  Has any one encountered this?

    Since I updated my pages to 5.01, I can't open documents created on my iPad today. It says you need a new version of pages to open document.  (My computer says it is installed).  Has any one encountered this?

    Well, here's what I found out that works for me...
    I had a Pages icon on my dock, and launching it brought up version 4.3.  But I went to my Apps folder and found the new updated icon there and when I launced that it brought up version 5.01.  So apparently the Apple update process left two versions launchable on my iMac.  Weird...
    Rocketman

  • Has any one heard of a ipod 6 comming out "all geniues please respond"

    hey every one has any one heard of a ipod 6 comming out in may or a press confrence

    No, Apple has not made any anouncement. Anything else would be speculation which is prohibited in this forum.
    Stay on topic. Apple Support Communities is here to help people use Apple products and technologies more effectively. Unless otherwise noted, do not add Submissions about nontechnical topics, including:
    Speculations or rumors about unannounced products.

  • Has any one had better success in vista or windows 7

    I am almost desparing with the amounts of bug in
    Flash Builder4 with Coldfusion builder plugins in an xp environment
    has any one had better success in a vista or windows 7?

    My T510 has a similar issue where it cannot connect to certain networks after a sleep or hibernate cycle. Currently my 'workaround' is to open 'View Network Connections' under control panel, right click on the AGN adapter, and choose 'disable' then re-'enable' it. Then it will connect fine. I know this is a workaround, but it does indicate that a revised driver should be able to fix the issue.
    Jon

  • Has any one developed state wise VAT report(Tamil nadu) using XLreporter

    In the XL reporter we have the statuary reports. In that we have the VAT report. The template of that report is in the format of the central government of India. But the format of state government report for tamil nadu varies from that of the central government one at a large extent.
    Has any one developed the VAT report for the state government?
    If so, please help me in this matter.....
    please give me suggestions. what can we do in this issue?
    please help me......

    VAT Reports are generated only through XL Reporter. You can edit the report to the appropriate format.
    Open the Report Organiser -> Select Report and Right Click and Select 'Edit' this opens the report defonition in Excel. Do the required modifications and save it.

  • After installing the safari 5.1.7 update when Im on aol and I go to ebay or certain web sites the sign in area and password area is blacked out? Has any one else had this issue and how to you correct it.

    On May 12th 2012 I updated Safari to 5.1.7 on my imac desktop. I also have snow leopard installed.After doing this update when I am on aol and I go to ebay, amazon and a few other sites the sign in area and the password area are blackened out. You could type in the area but not see what you are doing. Has any one else had this problem? Is there a fix?? I spoke to apple support last week and they dont have a clue on how to fix the issue nor does aol.Please help? Thanks.

    Hi..
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:  Remove All Website Data
    Now back to the menu bar, click Safari > Empty Cache
    Quit then relaunch Safari.
    Try one of the sites you had trouble accessing...

  • TS3276 Has any one had problems finding RSS feeds after upgrading to 10.8?

    Has any one had problems finding RSS feeds after upgrading to 10.8?

    RSS feeds no longer appear in Mail in Mountain Lion (nor in Safari). You'll need a separate RSS application.
    BTW, this forum is for Mac OS X 10.7 Lion. The forum for OS X 10.8 Mountain Lion is this one:
    https://discussions.apple.com/community/mac_os/os_x_mountain_lion
    Regards.

  • 720p/25 Has any one got any idea .....

    720p/25 Has any one got any idea how to capture 720p/25 or when the fcp update is coming ???????
    I have the new JVC HD101 top camera but can't capture Not Happy with FCP as their was a lot of talk at the NAB Show in LA that the update would be out in may??

    720p25 is no officially supported format in general.
    Only 720p50 is a real standard. However there is a
    so called 2:2 pulldown where you double the frames,
    also called 25p over 50p. This only concerns a
    transparent video signal via HD-SDI. Speaking about
    the Panasonic HVX200 is another story as this is a
    file based workflow.
    Here you can find an article how to capture, edit and
    monitor 720p50 in FCP 5.1:
    http://www.aulich-adamski.de/en/perm/720p50-capturing-editing-in-final-cut-pro
    This is also helpful for JVC GY-HD users that could use
    an HDV to HD-SDI converter.
    An second article describes the Panasonic P2 workflow
    with 720p25 and 72p50 but it's currently only in german:
    http://www.aulich-adamski.de/perm/panasonic-ag-hvx200-720p2550-p2-workflow-mit-f inal-cut-pro

  • Has any one configured Tomcat 4. with SSL?

    Has any one configured Tomcat 4. with SSL?
    Please I am getting a problem with this.
    When I say $tomcat_home/bin>startup,it starts up fine.
    When I change to the server.xml to point out to the server
    ceritificate I have created using the keytool,and again say
    startup,it disappears.
    Here is the extract of my server.xml
    Can some one please help as to what i am missing?
    <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8443" minProcessors="5" maxProcessors="75"
    enableLookups="true"
         acceptCount="100" debug="0" scheme="https" secure="true"
    useURIValidationHack="false" disableUploadTimeout="true">
    <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
    keystoreFile="C:/AHTTPS_UrlConnect/.keystore"
    keystorePass="changeit"
    clientAuth="false" protocol="TLS" />
    </Connector>

    this works for me
    <!-- unedited part below for ssl 21/7 -->
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8443" minProcessors="5" maxProcessors="200"
    enableLookups="false"
    acceptCount="10" connectionTimeout="60000" debug="0"
    scheme="https" secure="true">
    <Factory className="org.apache.catalina.net.SSLServerSocketFactory"
    clientAuth="false" keystoreFile="c:\jwsdp-1_0-ea2\tomcat_keystore\tomcatks" keystorePass="tomcat" protocol="TLS"/>
    </Connector>
    <!-- unedited part above 21/7 -->

  • Has any one worked on sharepoint 2013 workflows using visual studio.

    Has any one worked with sharepoint 3013 workflows using visual studio.

    Hi,
    To develop SharePoint 2013 workflow using Visual Studio, you can refer to:
    Develop SharePoint 2013 workflows using Visual Studio
    Create a SharePoint workflow app using Visual Studio 2012
    Get started with workflows in SharePoint 2013
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Has any one used Safari with TreasuryDirect?

    TreasuryDirect is asking for "A Web Browser That Supports 128-Bit Encryption". I cannot find any information about Safari's encryption capabilities. Has any one used Safari at TreasuryDirect?
    Thanks gameMan

    Hi,
    Safari does support 128-bit encryption, as mentioned on this page:
    http://www.apple.com/macosx/features/safari/
    "Safari also uses strong 128-bit encryption when accessing secure sites such as your bank or an online store, so you can transmit account and payment information with confidence."
    I can't comment on TreasuryDirect however - hopefully someone else can answer that part

  • Has any one used DocumentBurster/PdfBurster?

    Has any one used DocumentBurster/PdfBurster?
    http://www.pdfburst.com/
    I need some help in configuring the Email parameters inside the tool?

    DocumentBurster documentation on [how to distribute reports by email is available here|http://www.pdfburst.com/docs.html].

  • Has any one had this problem? While my computer says Pages is updated when I try to use it a popup says it can't open and to update.

    Has any one had trouble with pages? I have updated but when I try to use it a screen says that I need to update. What do I do?

    Are you launching Pages from an icon in your Dock? Installing the update does not change the Dock icons & it does not remove the older versions. Go to your Applications folder & launch the new Pages from there.

  • Every time I install an update of itunes, I get an error message saying: "/System/Library/Extensions/WkClassicNotSeizeDriver.Kext" was not installed Correctly. Has any one had it? Can you help me?

    Every time I install an update of itunes, I get an error message saying: "/System/Library/Extensions/WkClassicNotSeizeDriver.Kext" was not installed Correctly. Has any one had it? Can you help me?

    Find out what that third party software the kext file belongs to and update or use the developers method to uninstall the third party software responsible for it.
    I suspect it's a iTunes extension perhaps?
    You also can use the manual method of Finder > Go > Computer and opening your drive, then your  System/Library/Extensions folder and looking for the file and moving it out onto the desktop, you will need to be in Admin user and use your password, then reboot to clear the random access memory. However this method doesn't remove the parent program you still need to do that.
    How to uninstall/install software on your Mac
    The kext file wasn't loaded, so it's not running, but removing it from the Extensions folder or uninstalling what put it there will solve your notification problem as that's all it appears to be.

Maybe you are looking for

  • My IMac is filled with movies but I have none

    I have no movies on my computer at all, and  I do not know what files are considered "movies" .  I was also wondering how to get rid of the files to clear up the space.

  • Printing a document without opening it in Oracle Forms 10g

    Hi Friends, This is my first thread in this forum. Please any one give me a solution for my below request. We use oracle 10g and windows (any version). I want to print some files available in a folder without opening it (run in background) through or

  • RFCs and their use

    Hello a novice question about RFCs. Documentation I have says that I need to import the model and then bind the model object to a context model to be useable. I have a BAPI that I have imported by creating a model in my application. I am able to set

  • Problem with product catalog dissappearance in R3 webshop

    Hello, I have created a Product catalog layout in R3 system,but when i try to view the same in the webshop some part of the layout has disappeared,the layout structure can be seen but not the layout area name and also the products added to that area

  • Ipad not syncing, only charges when off

    Disclamers: I use the larger original usb plug to charge (not a small iphone brick or my laptop). And a car adapter that is rated for iPad. There is no water damage. It was dropped a long time ago but has worked without problem before and since. Last