Hashes.com Python CLI

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #12
- Added watch command

This command will watch the status of a particular job ID. Every 10 seconds it will check to make sure that the job is still active and update the hashes cracked. The length is set in minutes and the default is 5.

Screen Shot 2022-03-06 at 7.28.13 PM.png

Once the job is no longer available it will update you.
Screen Shot 2022-03-06 at 8.22.46 PM.png

 
Last edited:

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #13.1
- Small bug fix with the -algid flag in the algs function.

 
Last edited:

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #15
- Revamped watch command to allow multiple jobs.

The command works the same as before but you can provide multiple jobs (-jobid 1,2,3,4).
Screen Shot 2022-10-07 at 1.50.45 AM.png

I tried my best to make this new watch system as cross compatible as possible. Unfortunately this method does not work as intended with Windows 7. From my testing it works fine with Linux/Macos, Windows 10, and Windows 11. Let me know if you have any issues.

 

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Last edited:

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #17
- Added algorithm list update feature

Recently a json dump of the current valid hashes.com algorithms was added. This made it possible for an easy update system to be in place. When the script now runs it will check to see if there are new algorithms. If there are it will download the new list and update it. At that point the script will exit and when you reload it, the new algorithms will have been added.

Screen Shot 2022-11-09 at 7.41.58 PM.png

 

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #18
This update is to incorporate the new hashes.com API (https://hashes.com/en/docs) into this CLI. This was a very quick update that will need to be revisited to polish it.
- Added API key support (You can place your api key in api.txt or the script will prompt you for it when ran)
- Command 'get jobs' updated with new API url
- Command 'upload' updated with new API url
- Command 'balance' updated with new API url

To do:
- Redo 'stats' command with new logic for the new cryptos added
- Add a filter on the 'get jobs' command for the new cryptos added
- Redo 'withdraw' command for the new cryptos added
- Redo 'history -stats' command for the new cryptos added

As mentioned this was a quick update to get things going with the new API. In the coming weeks I will be completing the to do list and any other issues that might arise. Please report any issues that you may have. If there are any suggestions you have for this command line feel free to let me know in this thread.

 
Last edited:

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #19
- Fixed a bug in the 'get jobs' command when searching by algorithmid
- Updated 'stats' command with new logic for the new cryptos added
- Updated 'history -stats' command for the new cryptos added
- Added -currency flag to 'get jobs' command to filter by crypto currencies
- Added -currency flag to 'download' command to filter downloads by crypto currencies
- Added 'id' command for hash identifier

To do:
- Redo withdraw section for the new cryptos added
- Redo withdraw history section for the new cryptos added
- Add hash lookup
- Add XMR and LTC to usd conversion to the 'to_usd' function
- Add USD values to 'history -stats'

Because there are so many changes being made to the code I am relying on the community to help me report any issues. I have done a lot of testing and everything seems to work as intended so far. However with all the changes there is a possibility I missed or overlooked something. Please do some of your own testing/validating and report any issues or suggestions you may have. Thanks for all your help.

 

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #20
- Updated history command with new API url
- Added conversions for XMR and LTC to the 'to_usd' functions
- Updated 'balance' command with XMR and LTC to USD conversions
- Updated 'stats' command with total BTC, XMR, and LTC to USd conversions.
- Added 'lookup' command

Updated to do:
- Redo withdraw section for the new cryptos added
- Redo withdraw history section for the new cryptos added
- Add USD values to 'history -stats'

Here is a screenshot of the new lookup command that was added.
Screen Shot 2023-02-09 at 1.15.39 AM.png

As always please let me know if you find any issues.
 

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #21
- Added 250 hash limit check to 'lookup' command
- Removed login requirement for commands switched to the new API (upload, lookup, history, and balance)
- Fixed login function that was broken due to captcha
- Changed ticker to https://api.kraken.com for increase in speed
- Added -history flag to 'login' command. If you are logged in this will allow you to see your login history
- If you load from a current session your last 3 logins will automatically be displayed

Current to do:
- Redo withdraw section for the new cryptos added
- Redo withdraw history section for the new cryptos added (There is now an API for this. Just waiting for the 'status' field to be added to it before updating)
- Add USD values to 'history -stats'


Screenshot of the login history command and upon loading a session.
Screen Shot 2023-02-10 at 10.30.59 PM.png

 
Last edited:

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #22
- Optimization on requests for USD conversions to help speeds
- Added USD totals to 'history -stats' command

To do:
- Redo withdraw section for the new cryptos added
- Redo withdraw history section for the new cryptos added

 

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #22.2
- Fixed 'upload' and 'balance' function to work with only API key.
- Fixed 'recent_login' function to display status correctly.

 

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #23
- Updated valid algorithm list
- Added -self flag to 'get jobs' command.

The -self flag will allow you to search through jobs that you have created.

 

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,418
Reaction score
5,267
Credits
13,058
Update #24
- Updated 'withdrawals' command to use API.

Withdrawal history can be accessed with just API key now, no need to be logged in. The 'withdraw' command is still not functional and will most likely be removed in future updates.

Screen Shot 2023-10-04 at 10.54.53 PM.png


 
Top