[GET] Parse twitter for all users Sarahah profile! (FREE)

Status
Not open for further replies.

AutomationIsKey

Regular Member
Joined
Jan 25, 2016
Messages
373
Reaction score
324
Simply throw this into a PHP file and load it onto your server and watch it work (it will store all of their profiles into a txt file automatically)

PHP:
<?php
$url = 'https://twitter.com/search?f=tweets&vertical=default&q=sarahah.com&src=typd';
$refresh=10;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
$response = curl_exec($curl);
curl_close($curl);
preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $response, $match);
$check = [];
$existing = file('collected.txt', FILE_IGNORE_NEW_LINES);
$usernames = [];
$file = fopen('collected.txt', 'a');
foreach( array_unique( $match[0] ) AS $url )
{
    if( strpos( $url, '.sarahah.com' ) !== false )
    {
        $pieces = explode('.', str_replace(['http://','https://'],'',$url));
        if( $pieces[0] != 'www' && !in_array($pieces[0],$existing) ) $usernames[] = $pieces[0];
    }
}
foreach( array_unique( $usernames ) AS $username )
{
    fwrite($file, $username."\n");
}
fclose($file);
print 'done';
print '<meta http-equiv="refresh" content="'.$refresh.'">';

changing only a few things about the above code, I made it automatically comment on every single one of the links it collected telling the users to check out xxx website, (which was an email collection form) I've gathered about 30,000 emails so far with around 700K parsed.
 
thanks for the share

changing only a few things about the above code, I made it automatically comment on every single one of the links it collected telling the users to check out xxx website, (which was an email collection form) I've gathered about 30,000 emails so far with around 700K parsed.
If you don't mind, can you share this with me?
 
Please kindly brief me more about the installation on my server.

Maybe I should quickly ask you some questions that ensued from my mind right now :

1) Should put this code into a txt format and upload it to my WordPress directory through cpanel?

2) What do I need to modify in the above Php code in order to work for me?

Any other clarification would be appreciated.

Thanks Op
 
Please kindly brief me more about the installation on my server.

Maybe I should quickly ask you some questions that ensued from my mind right now :

1) Should put this code into a txt format and upload it to my WordPress directory through cpanel?

2) What do I need to modify in the above Php code in order to work for me?

Any other clarification would be appreciated.

Thanks Op
I also want to know
 
While I run this script, it gives a text file with below usernames - what is the meaning of them? What are we collecting with this script?

Saleha22
MaeBaetiong
Ghalla1
gustavokramer
akelgrstg
glaglalarciagla
alntfaq8
Fmalajmix
WorldofCAM
DariusHaze10
bimbyskie
jevsuarez
ash3ar46x
Chogiwa12
Faizanshoro
Xmaharei
QueenisKitty15
malakrooo7
mahmoud1998
gwaposok
diggdotcom
DuvanAtienza
n-abalkhail
jeyeeeeeem
rahmaxxkhalaf
maenezii
asianbabymariella
AliMags
SheenAls4
mariam53ta
reemaya1
Dindocalabazaron
diiiiiiiiiiiiiiiiiiiiii
lexendormixlea
Creole08
ghandj
jazi23
mahsugababy
lizardaseel5
deda1212
dlovansherwani
emunira
Kenany
Jannhlgd
armieee
Robertmanchild
fhaid9
dinaatw97
rokayaaymanelesawy
reematay
ayanaalbor03
paularamirez17
GhassanSinan
valerubio19
Fatimah957
yangdumb
atashyyy
looly956
nourii-ayman
sxlbmn
satsukitv
kauannyg
christine1821
 
And how to make it to send message to sarahah users?
 
thanks

altough right now the script is not working for me, is a great idea
 
I got a working solution to do the same autoposting as you, but soon got blocked by captcha... so it's not working for me
 
anyway is strange that you can send so many comments into twitter without getting stopped or banned or ghosted.

Or may be OP means send messages to that site sarahah.com profiles
 
hello...
I'm interested.but i now nothing for code.
can i have further explanation please?
 
Status
Not open for further replies.
Back
Top