Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Username checker Update

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 :)
(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 
Hey there,
If I have helped you or if you just enjoy my posts, please consider donating bitcoin to me 1DpL2kcxuidEsjt2MMN2AYufcVoXbi3v2X

[Image: FtwuQgr.gif]
(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
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-...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
(Jul 11, 2020 04:04 PM)Pawnhub 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-...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
(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
(Jul 11, 2020 04:06 PM)Pawnhub Wrote:  Yeah I seen that after I made the post R.I.P

no problem you had the right idea appreciate the thought
(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


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by -Nerotic-Oct 20, 2020 11:36 AM 14 443 Oct 20, 2020 11:36 AM
Last Post: CodeAssassin
[Python] by -Nerotic-Jul 13, 2020 10:53 AM 3 278 Jul 13, 2020 10:53 AM
Last Post: SIM-3587630
[Shell] by realsunjesterJan 13, 2019 07:12 AM 0 192 Jan 13, 2019 07:12 AM
Last Post: realsunjester