dgadling / adp-scrape Goto Github PK
View Code? Open in Web Editor NEWCode for downloading pay stubs from adp.com
License: MIT License
Code for downloading pay stubs from adp.com
License: MIT License
If you get a bonus, it tends to show up as another pay stub on the same date as your normal pay date. That's not handled very well right now (you'll only get one, who knows which?!).
fixitfixitfixit
I tried using this handy looking tool recently but got the following crash:
File "/home/tombrown/.pyenv/versions/adp-scrape/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/tombrown/.pyenv/versions/adp-scrape/lib/python3.6/site-packages/adp-1.0-py3.6.egg/adp.py", line 203, in cli
File "/home/tombrown/.pyenv/versions/adp-scrape/lib/python3.6/site-packages/adp-1.0-py3.6.egg/adp.py", line 180, in download_needed
File "/home/tombrown/.pyenv/versions/adp-scrape/lib/python3.6/site-packages/adp-1.0-py3.6.egg/adp.py", line 78, in get_uid
File "/home/tombrown/.pyenv/versions/3.6.8/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/home/tombrown/.pyenv/versions/3.6.8/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/tombrown/.pyenv/versions/3.6.8/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I ran it in a debugger and the requests
response looks different from when I try an incorrect password.
Using Chrome's Copy as cURL
it looks like there is a bunch of data (a few kB that look almost like base64url encoded binary except for some single %3D
in the middle of the values) included with the POST data beyond basics currently sent by adp.py
. With curl when the extra data is included I get a good login response and with only user, password, target, redirectUrl I get an error. I don't see these values in the HTML form hidden inputs so I'm guessing they are added by javascript. I haven't found them in the javascript yet.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.