Browse Source

IT WORKS!

pull/1/head
calexil 3 years ago
parent
commit
0777ea0fbe
2 changed files with 11 additions and 5 deletions
  1. 4
    1
      README.md
  2. 7
    4
      rankcheck.py

+ 4
- 1
README.md View File

@@ -2,6 +2,9 @@
A tool to pull rank data from saltybet.com and display it in terminal.

## Usage
Simple clone the repo, edit rankcheck.py so your email and password are in the definitions at the top, and run it in terminal:
Simple clone the repo and run rankcheck.py in terminal:

`python rankcheck.py`

## Options


+ 7
- 4
rankcheck.py View File

@@ -6,9 +6,12 @@ from lxml import html
import requests



EMAIL = "<email>"
PWORD = "<password>"
#If you prefer not to enter your password every time
#simply change the lines below so they read
#EMAIL = "your email"
#PWORD = "your password"
EMAIL = raw_input("What is your email? ")
PWORD = raw_input("Enter your password: ")

LOGIN_URL = "http://www.saltybet.com/authenticate?signin=1"
URL = "http://www.saltybet.com"
@@ -37,7 +40,7 @@ def main():
tree = html.fromstring(result.content)
rank_number = tree.xpath('//span[@class="navbar-text"]/text()')

print "%s" % rank_number
print "%s" % rank_number

if __name__ == '__main__':
main()

Loading…
Cancel
Save