Join us on IRC @ irc.r00tsecurity.org #r00tsecurity [ Web Client ] [ Log In | Register ]  
Resource Database Index -> Source Code -> Google Music Search
Description // Info



Source Code

  1. import urllib2
  2.  
  3. band = raw_input(\"Band name: \")
  4. song = raw_input(\"Song name: \")
  5. filename = song + \'.html\'
  6. band = band.replace(\' \',\'+\')
  7. song = song.replace(\' \', \'+\')
  8. #print band
  9.  
  10. url = \'http://www.google.com/search?hl=en&safe=off&q=intitle:\"index+of\"+\"%s\"+\"%s\"&btnG=Search\' % (song, band)
  11. #print url
  12.  
  13. opener = urllib2.build_opener(urllib2.HTTPCookieProcessor())
  14. opener.addheaders = [(\'User-agent\', \'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)\')]
  15. urllib2.install_opener(opener)
  16. stuff = urllib2.urlopen(url).read()
  17. links = []
  18. spamfile = open(\'spamsites.txt\',\'r\')
  19. spams = spamfile.read()
  20. spamfile.close()
  21. spam = spams.split(\'n\')
  22. #print spam
  23. while \'<a href=\"http://\' in stuff:
  24.    shit = stuff.split(\'<a href=\"http://\',1)[1].split(\'\"\',1)[0]
  25.    line = \'<a href=\"http://\' + shit + \'\"\'
  26.    link = \'http://\' + shit
  27.    stuff = stuff.replace(line,\'\')
  28.    z = 0
  29.    while z < len(spam):
  30.        if spam[z] in link:
  31.            caek = \'one\'
  32.            break
  33.        else:
  34.            caek = \'two\'
  35.        z += 1
  36.    if caek == \'two\':
  37.        links.append(link)
  38.        
  39. total = 10
  40. while total < 50:
  41.    newurl = \'http://www.google.com/search?hl=en&safe=off&q=intitle:\"index+of\"+\"%s\"&btnG=Search&start=%s&sa=N\' % (band, total)
  42.    stuff = urllib2.urlopen(newurl).read()
  43.    while \'<a href=\"http://\' in stuff:
  44.        shit = stuff.split(\'<a href=\"http://\',1)[1].split(\'\"\',1)[0]
  45.        line = \'<a href=\"http://\' + shit + \'\"\'
  46.        link = \'http://\' + shit
  47.        stuff = stuff.replace(line,\'\')
  48.        z = 0
  49.        while z < len(spam):
  50.            if spam[z] in link:
  51.                caek = \'one\'
  52.                break
  53.            else:
  54.                caek = \'two\'
  55.            z += 1
  56.        if caek == \'two\':
  57.            links.append(link)
  58.    total += 10
  59.  
  60. title = band.replace(\'+\',\' \')
  61.  
  62. html = \"\"\"
  63. <html>
  64. <head><title>%s Results</title></head>
  65. <body>
  66. \"\"\" % title
  67. x = 0
  68. while x < len(links):
  69.    #name = \'/\' + links[x].split(\'http://\',1)[1].split(\'/\',1)[1]
  70.    htmlink = \'<a href=\"%s\" target=\"_blank\">%s</a><br>\' % (links[x], links[x])
  71.    html += htmlink
  72.    x += 1
  73. html += \"\"\"
  74. </body>
  75. </html>
  76. \"\"\"
  77. file2 = open(filename,\'w\')
  78. file2.write(html)
  79. file2.close()
  80.  
  81. -----------------------------------------
  82. spamsites.txt
  83.  
  84. listen77
  85. youtube
  86. google
  87. franceradio
  88. mp3gl
  89. mp3s.pl
  90. indexofmp3.net
  91. e-mp3s.eu
  92. mp3mirror.com
  93. music-dir.org
  94. mp3rhythms.com
  95. fast-mp3.com
  96. null3d.com
  97. mp3fiesta.com
  98. music-index.net
  99. index-of-mp3.biz
  100. lyric
  101. indexofmp3.org
  102. mp3fever.org
  103. bewbs.net
  104. blogspot
  105. 01direct.net
  106. free-softwares-download.info
  107. vmp3.eu
  108. mp3-index.com
  109. mp3-collection.info
  110. listofmp3s.com
  111. mp3slap.com
  112. tartists.com
  113. cache
  114. related
  115. mp3dl
  116. musicindexof
  117. mp3-network
  118. musik.am
  119. metacritic
  120. mp3fusion
  121. justhotmp3s
  122. audiozen
  123. airmp3
  124. hitzmp3
  125. mp3toss
  126. pure-mp3
  127. mp3fy
  128. indexof-mp3
  129. mp3zine
  130. geekmp3


Comments

You must be logged in to post comments.

 Network Access...
USER ID
PASSWORD

 Code Information
Language:
Python

Version:
1.0


Submitted:
2009-10-09 - 20:20:33


Author:
PhreakerD7
E-Mail
Website

Greetz:


[ Download | Report Issue ]

 Code Search
Search by Language
+ Assembly
+ ASP
+ ASP.NET
+ C#
+ C/C++
+ Cobol
+ Delphi
+ Java
+ Javascript
+ Pascal
+ Perl
+ PHP
+ Python
+ VB6
+ VB.NET

Advanced Search




 
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.

© 2008 r00tsecurity network. All rights reserved.
[ About Us | Contact Us | Support Us | Legal | Advertise | User Agreement | Privacy Policy ]