Sinisterly
Grab usernames from any HC page. - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Python (https://sinister.ly/Forum-Python)
+--- Thread: Grab usernames from any HC page. (/Thread-Grab-usernames-from-any-HC-page)



Grab usernames from any HC page. - H4R0015K - 04-17-2013

Code:
from urllib import * data = urlopen(raw_input("Enter HC url :")).read() def duplicate_check(user,found): temp = "@ "+found if temp not in user: return True return False def get_user(data): user = [] end = 0 temp = "http://www.hackcommunity.com/User-" while True: start = data.find(temp,end) if start == -1: return user end = data.find('"',start) found = data[start+len(temp):end] if duplicate_check(user,found): user.append("@ "+found) print '' for i in get_user(data): print i

Screenshot :
[Image: amaSOkd.png]

@ Shining-White @ revboxbk @ XxGreenLanternxX @ jainidhya999347 @ hantu @ stex1000 @ gufrans @ ILoveYou @ Keops @ cyanide @ Wisher @ Psycho-Coder @ Anonymous-g33k @ grokuak @ Nooby @ FunKx @ Kcarbray23 @ Deque @ trandafir @ L4ndonm4nson @ daisyalbert @ ThaShock @ ultrajunk @ LightX @ chmod @ ArkPhaze @ dernat71 @ Houkin @ Exploits @ Coder-san @ tamansu @ dandino-uk @ killerro @ mustangapa


Grab usernames from any HC page. - H4R0015K - 04-17-2013

Code:
from urllib import * data = urlopen(raw_input("Enter HC url :")).read() def duplicate_check(user,found): temp = "@ "+found if temp not in user: return True return False def get_user(data): user = [] end = 0 temp = "http://www.hackcommunity.com/User-" while True: start = data.find(temp,end) if start == -1: return user end = data.find('"',start) found = data[start+len(temp):end] if duplicate_check(user,found): user.append("@ "+found) print '' for i in get_user(data): print i

Screenshot :
[Image: amaSOkd.png]

@ Shining-White @ revboxbk @ XxGreenLanternxX @ jainidhya999347 @ hantu @ stex1000 @ gufrans @ ILoveYou @ Keops @ cyanide @ Wisher @ Psycho-Coder @ Anonymous-g33k @ grokuak @ Nooby @ FunKx @ Kcarbray23 @ Deque @ trandafir @ L4ndonm4nson @ daisyalbert @ ThaShock @ ultrajunk @ LightX @ chmod @ ArkPhaze @ dernat71 @ Houkin @ Exploits @ Coder-san @ tamansu @ dandino-uk @ killerro @ mustangapa


RE: Grab usernames from any HC page. - Psycho_Coder - 04-17-2013

Nice post , thank you buddy


RE: Grab usernames from any HC page. - Psycho_Coder - 04-17-2013

Nice post , thank you buddy


RE: Grab usernames from any HC page. - Ex094 - 04-17-2013

Nice, this can be used as a Username Leecher if properly setup for other forums


RE: Grab usernames from any HC page. - Ex094 - 04-17-2013

Nice, this can be used as a Username Leecher if properly setup for other forums