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

Extract Google Adsense Code From Url

Discussion in 'BlackHat Lounge' started by Merlin22, Jan 13, 2015.

  1. Merlin22

    Merlin22 Regular Member

    Joined:
    May 19, 2010
    Messages:
    214
    Likes Received:
    32
    Does anybody know of a way to bulk extract the "ca-pub" number from a list of url's?

    I tried to do it with scrapebox using ca-pub as a footprint, but that didn't work.

    I'm open to getting other software should that be needed.
     
  2. HelloInsomnia

    HelloInsomnia Jr. Executive VIP Jr. VIP

    Joined:
    Mar 1, 2009
    Messages:
    1,825
    Likes Received:
    2,936
    You can use Notepad++ and replace (using regular expressions)

    Code:
    .+?(?=ca-pub-\d)
    
    With nothing

    then

    Code:
    (?<=\d)&adurl=.+
    
    with nothing and you're left with what you want.
     
    • Thanks Thanks x 2
  3. thetrustedzone

    thetrustedzone Jr. VIP Jr. VIP

    Joined:
    Jun 15, 2010
    Messages:
    2,358
    Likes Received:
    1,915
    Home Page:
    i just shared tool could use it for this get it from here
     
    • Thanks Thanks x 2
  4. ushadeep

    ushadeep Regular Member

    Joined:
    Aug 22, 2014
    Messages:
    454
    Likes Received:
    157
    Location:
    India
    hey thanks for solve to me also
     
  5. Merlin22

    Merlin22 Regular Member

    Joined:
    May 19, 2010
    Messages:
    214
    Likes Received:
    32
    I appreciate the feedback about notepad++, but the problem I am experiencing is getting the actual G Publisher Id from the source code.

    I used ""ca-pub" as the footprint expecting SB to extract the whole line with the id number. I must be missing something because it doesn't do that. Any ideas?
     
  6. Merlin22

    Merlin22 Regular Member

    Joined:
    May 19, 2010
    Messages:
    214
    Likes Received:
    32
    Pretty cool software. What code would I use to extract the "ca-pub" information?
     
  7. HelloInsomnia

    HelloInsomnia Jr. Executive VIP Jr. VIP

    Joined:
    Mar 1, 2009
    Messages:
    1,825
    Likes Received:
    2,936
    If you post the entire line you get from SB or deep extractor I can give you the regex to scrape it out.
     
    • Thanks Thanks x 1