Hack Forums
[Python] Username checker Update - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Username checker Update (/showthread.php?tid=6093903)



Username checker Update - -Nerotic- - Jul 10, 2020

This post is in regards to my other post. you can find it HERE


I got this completely working but now I'm trying to integrate a feature so I can upload a Txt file of names to check instead of manually checking I can PM my code because I don't want it public out there. but this will be released for Free when done :)


RE: Username checker Update - tux1 - Jul 11, 2020

(Jul 10, 2020 07:50 AM)-Nerotic- Wrote:  This post is in regards to my other post. you can find it HERE


I got this completely working but now I'm trying to integrate a feature so I can upload a Txt file of names to check instead of manually checking I can PM my code because I don't want it public out there. but this will be released for Free when done :)

Difficult to help with out seeing the code but presuming you have a basic checker that sends a request you can use something like the below to go through a text file to get the names and then do a check each time

PHP Code

<?php 
nameList 
= "list.txt"

with open(nameList , 'r') as file:
 
    for name in file:
 
           #use the name variable here to send your request and do your checks 



RE: Username checker Update - -Nerotic- - Jul 11, 2020

(Jul 11, 2020 03:56 PM)tux1 Wrote:  Difficult to help with out seeing the code but presuming you have a basic checker that sends a request you can use something like the below to go through a text file to get the names and then do a check each time

PHP Code

<?php 
nameList 
= "list.txt"

with open(nameList , 'r') as file:
 
    for name in file:
 
           #use the name variable here to send your request and do your checks 

Hey i appreciate the help but i actually already finished it.

https://hackforums.net/showthread.php?tid=6094173


RE: Username checker Update - Pawnhub - Jul 11, 2020

Here I'm not going to spoil you with the easy answer but here's what you want to do.
https://stackabuse.com/read-a-file-line-by-line-in-python/

so you read the lines and put them into a list. For example we will call said list "usernames"

We all love loops so use a for loop to literate over that list.
From here your code should look like.
Code
for name in usernames:
    Code_to_check_name_here



RE: Username checker Update - -Nerotic- - Jul 11, 2020

(Jul 11, 2020 04:04 PM)UnknownPawn Wrote:  Here I'm not going to spoil you with the easy answer but here's what you want to do.
https://stackabuse.com/read-a-file-line-by-line-in-python/

so you read the lines and put them into a list. For example we will call said list "usernames"

We all love loops so use a for loop to literate over that list.
From here your code should look like.
Code
for name in usernames:
   Code_to_check_name_here

as i said above haha

Hey i appreciate the help but i actually already finished it.
https://hackforums.net/showthread.php?tid=6094173


RE: Username checker Update - Pawnhub - Jul 11, 2020

(Jul 11, 2020 04:06 PM)-Nerotic- Wrote:  as i said above haha

Hey i appreciate the help but i actually already finished it.
https://hackforums.net/showthread.php?tid=6094173

Yeah I seen that after I made the post R.I.P


RE: Username checker Update - -Nerotic- - Jul 11, 2020

(Jul 11, 2020 04:06 PM)UnknownPawn Wrote:  Yeah I seen that after I made the post R.I.P

no problem you had the right idea appreciate the thought


RE: Username checker Update - Pawnhub - Jul 11, 2020

(Jul 11, 2020 04:07 PM)-Nerotic- Wrote:  no problem you had the right idea appreciate the thought

Thanks! Well good luck on your python adventure man