1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

imacro help : find if a word is on a webpage

Discussion in 'Black Hat SEO' started by carlito, Nov 12, 2012.

  1. carlito

    carlito BANNED BANNED

    Joined:
    Aug 22, 2010
    Messages:
    1,153
    Likes Received:
    326
    I can give 5 rep and 5 thanks to someone who can help me:

    I have a list of links (can be txt or csv file), and I have to verify if a specific word is present on each page (always the same word).

    Could someone make me a little imacro script for this?

    thanks
     
    Last edited: Nov 13, 2012
  2. moonlighsunligh

    moonlighsunligh Jr. VIP Jr. VIP Premium Member

    Joined:
    May 1, 2010
    Messages:
    1,623
    Likes Received:
    218
    Do this with scrapebox link checker. Put a (single) keyword in websites field. And then, start link checker.

    If you put multiple keywords, one keyword per row, you will find if any of these keywords is present on the page.


    The only downside is this way you can only check single keywords.
     
    • Thanks Thanks x 1
  3. carlito

    carlito BANNED BANNED

    Joined:
    Aug 22, 2010
    Messages:
    1,153
    Likes Received:
    326


    Hey thanks mate, even if it's not the exact solution I was looking for, you deserve a rep and a thx :D

    cheers
     
  4. Soomro

    Soomro BANNED BANNED

    Joined:
    Sep 26, 2012
    Messages:
    33
    Likes Received:
    12
    Can you share some dummy link along with keyword? I make you a good looking script.
     
  5. carlito

    carlito BANNED BANNED

    Joined:
    Aug 22, 2010
    Messages:
    1,153
    Likes Received:
    326
    thanks bro for your help, what do you want exactly I didnt understand what you mean sorry. In fact I want to check in Youtube if a certain word is present on the video page (a word contained in my comment) to check in bulk if my comments are not ghosted or banned.
     
  6. moonlighsunligh

    moonlighsunligh Jr. VIP Jr. VIP Premium Member

    Joined:
    May 1, 2010
    Messages:
    1,623
    Likes Received:
    218
    You need to check multiple word keywords?
    Then check for each single keyword separately, and then see how many pages contains the each of these words. Of course everything using scrapebox. You have an option to compare on url level/domain level on import tab. Combine this with lists you got, and you will get what you want.


    This is the fastest way to check such things, custom script will probably be way slower, unless it is multi-threaded.
     
    Last edited: Nov 13, 2012
  7. proweb

    proweb Regular Member

    Joined:
    Feb 24, 2011
    Messages:
    291
    Likes Received:
    144
    Use the following scrapebox footprint:

    site:WEBSITEADDRESS allintext:KEYWORD

    ex: site:blackhatworld.com allintext:blue widget

    You can create the footprint for each site in excel and then just copy+paste the 1,000 footprints into the scrapebox harvester text area.
     
  8. carlito

    carlito BANNED BANNED

    Joined:
    Aug 22, 2010
    Messages:
    1,153
    Likes Received:
    326
    Unfortunately Scrapebox method doesn't work, it always says "found" even for the urls I know the word is not here...


    yeah this could work but only if the pages are indexed, it's not the case for all the videos I've commented...
     
  9. R4Z0rA07

    R4Z0rA07 Junior Member

    Joined:
    Apr 17, 2012
    Messages:
    167
    Likes Received:
    150
    Try this iMacros Script :

    Code:
    VERSION BUILD=7601015 RECORDER=FX
    TAB T=1
    SET !REPLAYSPEED FAST
    SET !ERRORIGNORE YES
    SET !ERRORCONTINUE YES
    SET !EXTRACT_TEST_POPUP NO
    SET !TIMEOUT_STEP 60
    SET !DATASOURCE [COLOR=#ff0000]YOUTUBEURLS.txt[/COLOR]
    SET !DATASOURCE_COLUMNS 1
    SET !DATASOURCE_LINE {{!LOOP}}
    URL GOTO={{!COL1}}
    TAG POS=1 TYPE=* ATTR=TXT:*[COLOR=#ff0000]YOUR KEYWORD[/COLOR]* EXTRACT=TXT
    SAVEAS TYPE=EXTRACT FOLDER=* FILE=[COLOR=#ff0000]extract.csv[/COLOR]
    WAIT SECONDS=5
    1. Make a text file named YOUTUBEURLS.txt in the datasource folder and input the Youtube URLs you want to check .. one per line and with http://

    2. Run the Loop as many time as many you have the URLs.

    3. After you run this script, You will get the Keyword in the .csv in the Line Number (line number of the URL in YOUTUBEURLS.txt file) where the Keyword was found. So once the script is finished you can compare your YOUTUBEURLS.txt and extract.csv to find the URL where the keyword is present and where its not.

    Note : Run it in Firefox for better results. The .csv file is saved in the Downloads Folder inside iMacros folder.

    Hope it helps.
     
    • Thanks Thanks x 1
  10. moonlighsunligh

    moonlighsunligh Jr. VIP Jr. VIP Premium Member

    Joined:
    May 1, 2010
    Messages:
    1,623
    Likes Received:
    218
    Well probably this word is present in the source code of the page. I use this method everyday and it never failed. So check this again.

    It is way more difficult if you want to check if the word is present in a comment or anywhere in outertext only.
     
  11. carlito

    carlito BANNED BANNED

    Joined:
    Aug 22, 2010
    Messages:
    1,153
    Likes Received:
    326


    Hey bro I am really gratefull You make me love this forum more and more day after day !
    I launched the macro, it seemed to work well, but when I look at the extract.csv file here is what I get :
     

    Attached Files:

  12. carlito

    carlito BANNED BANNED

    Joined:
    Aug 22, 2010
    Messages:
    1,153
    Likes Received:
    326

    yes that's what I thought, checking youtube comments with scrapebox is hard since youtube pages source are wild :)
     
  13. R4Z0rA07

    R4Z0rA07 Junior Member

    Joined:
    Apr 17, 2012
    Messages:
    167
    Likes Received:
    150
    :)

    Try to replace the 3rd last line with this :

    TAG POS=1 TYPE=* ATTR=TXT:*YOUR KEYWORD* CONTENT=EVENT:FAIL_IF_FOUND

    Now when the line is found, It will place the FAIL_IF_FOUND line in the csv.

    Alternatively, You can also try the following line.

    SEARCH SOURCE=TXT:"KEYWORD" IGNORE_CASE=YES EXTRACT=TXT

    Don't forget to delete the current extract.csv before running it once again.
     
  14. carlito

    carlito BANNED BANNED

    Joined:
    Aug 22, 2010
    Messages:
    1,153
    Likes Received:
    326

    well I tried both of the solutions, deleted the excel file each time, but no more success, this time the file is empty...

    In fact here is what I want to do :
    I want to check if my youtube comments were banned or not, by checking the presence of the word "spam" in the page.

    I think this script could interest many guyz here.

    Thanks for your help :)
     
  15. proweb

    proweb Regular Member

    Joined:
    Feb 24, 2011
    Messages:
    291
    Likes Received:
    144
    I don't know if you have ZennoPoster or not, but if you do it would be fairly easy to do this. Here are the steps:
    1) Create a file with all the URLs
    2) Visit the page
    3) Click on "View all comments" for the video
    4) Find an exact text match
    5) If text is found save the URL in a new file

    Would literally take like 10-15 minutes to create that script...if you have Zenno.
     
    Last edited: Nov 13, 2012
  16. carlito

    carlito BANNED BANNED

    Joined:
    Aug 22, 2010
    Messages:
    1,153
    Likes Received:
    326

    Hi bro, unfortunately I dont have zenno, I know it's a nice tool though...