You are viewing our Forum Archives. To view or take place in current topics click here.
Every single OG TTG name
Posted:

Every single OG TTG namePosted:

iyop45
  • Prospect
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
I decided to run a script to officially find every single og name on ttg.
I found a pre-populated text file with what appears to be all the word in the English language: [ Register or Signin to view external links. ]
The script was then executed and here are the results (I will run it for every 100 or so words at a time as it would takes ages if I ran it all at once):
1-100: [ Register or Signin to view external links. ]
100-200: [ Register or Signin to view external links. ]
200-300: [ Register or Signin to view external links. ]
300-400: [ Register or Signin to view external links. ]
// Now checks if user is suspended
400-1000: [ Register or Signin to view external links. ]

Beginning with 'Y': [ Register or Signin to view external links. ]

The script:

   function curl_file_get_contents($url){
      $curl = curl_init();
      $userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)';

      curl_setopt($curl,CURLOPT_URL,$url); //The URL to fetch. This can also be set when initializing a session with curl_init().
      curl_setopt($curl,CURLOPT_RETURNTRANSFER,TRUE); //TRUE to return the transfer as a string of the return value of curl_exec() instead of outputting it out directly.
      curl_setopt($curl,CURLOPT_CONNECTTIMEOUT,5); //The number of seconds to wait while trying to connect.   

      curl_setopt($curl, CURLOPT_USERAGENT, $userAgent); //The contents of the "User-Agent: " header to be used in a HTTP request.
      curl_setopt($curl, CURLOPT_FAILONERROR, TRUE); //To fail silently if the HTTP code returned is greater than or equal to 400.
      curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE); //To follow any "Location: " header that the server sends as part of the HTTP header.
      curl_setopt($curl, CURLOPT_AUTOREFERER, TRUE); //To automatically set the Referer: field in requests where it follows a Location: redirect.
      curl_setopt($curl, CURLOPT_TIMEOUT, 10); //The maximum number of seconds to allow cURL functions to execute.   

      $contents = curl_exec($curl);
      curl_close($curl);
      return $contents;
   }
   set_time_limit(0);
   // Open the file
   $filename = 'brit-a-z.txt';
   $fp = @fopen($filename, 'r');

   // Add each line to an array
   if($fp){
      $array = explode("\n", fread($fp, filesize($filename)));
   }
   for($i = 400; $i < count($array) && $i<1000; ++$i){
      $name = trim($array[$i]);
      $url = 'http://thetechgame.com/' . $name;
      $buffer = curl_file_get_contents($url);
      // Check if user account is taken
      if(strpos($buffer,'Account Not Found') !== false){
         echo 'user "' . $name . '" is available <a href="http://thetechgame.com/' . $name . '">link</a><br>';
      }else{
         echo '<span style="text-decoration:line-through">user "' . $name . '" is <b>not</b> available </span><br>';
      }
      sleep(1);
   }

* The curl function was used from a blog.
* I will update it with more if people want me to.
* This list counts suspended accounts as being available ( I forgot about that )
So far have done 1000 out of 79,769/92,627


Last edited by iyop45 ; edited 7 times in total

The following 6 users thanked iyop45 for this useful post:

Jambrah (10-31-2013), Jamy (10-30-2013), StoopidMonkie (10-30-2013), 2PACakaMAKAVELI (10-30-2013), Ohm (10-30-2013), TGK (10-30-2013)
#2. Posted:
TGK
  • TTG Senior
Status: Offline
Joined: Oct 03, 201310Year Member
Posts: 1,409
Reputation Power: 64
Status: Offline
Joined: Oct 03, 201310Year Member
Posts: 1,409
Reputation Power: 64
I look up to you.
I hope you know that. Lol.
Nice script!
#3. Posted:
iyop45
  • Prospect
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
That's nice to hear man
Don't quite know why you got downvoted though.
#4. Posted:
Ohm
  • TTG Addict
Status: Offline
Joined: Jun 03, 201112Year Member
Posts: 2,689
Reputation Power: 138
Status: Offline
Joined: Jun 03, 201112Year Member
Posts: 2,689
Reputation Power: 138
this is pretty cool how long do you think it will take to run all the possible names?
#5. Posted:
iyop45
  • Prospect
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
-Suicide- wrote this is pretty cool how long do you think it will take to run all the possible names?

Meh, I'll run it every so often. I've added 100-200. If I ran it all at once my computer will probably explode.

*Takes roughly 5 mins every 100 names but it's considering the fact that there's 79,769 of them. 92,627 If I'm considering all the cities etc..
So.. It would take 2.7 days of my computer solidly working on it or 3.2 days ( If including cities and stuff )
#6. Posted:
eh
  • Christmas!
Status: Offline
Joined: Jul 28, 201211Year Member
Posts: 5,836
Reputation Power: 340
Status: Offline
Joined: Jul 28, 201211Year Member
Posts: 5,836
Reputation Power: 340
what defines OG? and why does it matter?
#7. Posted:
Insulting
  • Challenger
Status: Offline
Joined: Jul 08, 201211Year Member
Posts: 163
Reputation Power: 7
Status: Offline
Joined: Jul 08, 201211Year Member
Posts: 163
Reputation Power: 7
In his term for OG I think he means words that people use in every day life or are in the dictionary. Such as mine.
#8. Posted:
2PACakaMAKAVELI
  • Resident Elite
Status: Offline
Joined: Jul 10, 201310Year Member
Posts: 231
Reputation Power: 11
Status: Offline
Joined: Jul 10, 201310Year Member
Posts: 231
Reputation Power: 11
iyop45 wrote I decided to run a script to officially find every single og name on ttg.
I found a pre-populated text file with what appears to be all the word in the English language: [ Register or Signin to view external links. ]
The script was then executed and here are the results (I will run it for every 100 or so words at a time as it would takes ages if I ran it all at once):
1-100: [ Register or Signin to view external links. ]
100-200: [ Register or Signin to view external links. ]
200-300: [ Register or Signin to view external links. ]
300-400: [ Register or Signin to view external links. ]

The script:

   function curl_file_get_contents($url){
      $curl = curl_init();
      $userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)';

      curl_setopt($curl,CURLOPT_URL,$url); //The URL to fetch. This can also be set when initializing a session with curl_init().
      curl_setopt($curl,CURLOPT_RETURNTRANSFER,TRUE); //TRUE to return the transfer as a string of the return value of curl_exec() instead of outputting it out directly.
      curl_setopt($curl,CURLOPT_CONNECTTIMEOUT,5); //The number of seconds to wait while trying to connect.   

      curl_setopt($curl, CURLOPT_USERAGENT, $userAgent); //The contents of the "User-Agent: " header to be used in a HTTP request.
      curl_setopt($curl, CURLOPT_FAILONERROR, TRUE); //To fail silently if the HTTP code returned is greater than or equal to 400.
      curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE); //To follow any "Location: " header that the server sends as part of the HTTP header.
      curl_setopt($curl, CURLOPT_AUTOREFERER, TRUE); //To automatically set the Referer: field in requests where it follows a Location: redirect.
      curl_setopt($curl, CURLOPT_TIMEOUT, 10); //The maximum number of seconds to allow cURL functions to execute.   

      $contents = curl_exec($curl);
      curl_close($curl);
      return $contents;
   }
   set_time_limit(0);
   $timer = new timer(1);
   // Open the file
   $filename = 'brit-a-z.txt';
   $fp = @fopen($filename, 'r');

   // Add each line to an array
   if($fp){
      $array = explode("\n", fread($fp, filesize($filename)));
   }
   for($i = 0; $i < count($array) && $i<100; ++$i){
      $name = trim($array[$i]);
      $url = 'http://thetechgame.com/' . $name;
      $buffer = curl_file_get_contents($url);
      // Check if user account is taken
      if(strpos($buffer,'There is no available info for') !== false){
         echo 'user "' . $name . '" is available <a href="http://thetechgame.com/' . $name . '">link</a><br>';
      }else{
         echo '<span style="text-decoration:line-through">user "' . $name . '" is <b>not</b> available </span><br>';
      }
   }

* The curl function was used from a blog.
* I will update it with more if people want me to.
* This list counts suspended accounts as being available ( I forgot about that )
So far have done 300 out of 79,769/92,627






Thank You So Much This Is Amazing
#9. Posted:
iyop45
  • Prospect
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
BSM wrote what defines OG? and why does it matter?

1. I understand OG to be any real word in the english dictionary, though feel free to correct me though I can't change the title now.

2. It doesn't matter at all. A post was already made on this topic and instead of me constantly bumping it I thought to create another one. Like I said previously, If nobody cares I won't post anymore.
#10. Posted:
iyop45
  • Prospect
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
I've now added all the first 1000 names and I think that's enough (400-1000 now discount suspended account unlike the first 400 names). If you want you want to use the script feel free but just bear in mind it's a php script so you need to run it with apache and xampp or on a server with php installed and set-up.
- I won't be bumping this post anymore of my own accord.


Last edited by iyop45 ; edited 1 time in total
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.