Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
This package uses ESPN's Fantasy API to extract data from any public or private league for Fantasy Football and Basketball (NHL, MLB, and WNBA are in development).
Please feel free to make suggestions, bug reports, and pull request for features or fixes!
This package was inspired and based off of rbarton65/espnff.
With Git:
git clone https://github.com/cwendt94/espn-api
cd espn-api
python3 setup.py install
With pip:
pip install espn_api
# Football API
from espn_api.football import League
# Basketball API
from espn_api.basketball import League
# Hockey API
from espn_api.hockey import League
# Baseball API
from espn_api.baseball import League
# Init
league = League(league_id=222, year=2019)
python3 setup.py nosetests
If you have any questions about the package, ESPN API data, or want to talk about a feature please start a discussion!
If you find a bug follow the steps below for reporting.
Open a new issue with a brief description of the bug for the title. In the title also add which sport (Football or Basketball)
Run the application in debug mode to view ESPN API request's and response's
# ... import statement above
league = League(league_id=1245, year=2019, debug=True)
The application will print all requests and the response from ESPN's API in the console. I would suggest piping the console output to a text file as it will be a lot of data.
Find the last log before the crash and copy it in the issue descrption with the line number of the crash or possible bug.
Submit the new issue!
I will try to comment on the issue as soon as possible with my thoughts and possible fix!
FAQs
ESPN API
We found that espn-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.