E-sim Scraper
Unofficial scraper for the e-sim browser game.
Installation
pip install -U e-sim-game-scraper
Usage
from e_sim_game_scrapper import EsimScraper
# or from e_sim_game_scrapper.EsimScraper import get_page_data
# Example 1
link = "https://luxia.e-sim.org/battleDrops.html?id=1&showSpecialItems=yes"
result = EsimScraper.get_page_data(link)
# >>> {'pages': 2, 'drops': [{'nick': 'Taturuski', 'item': 'Bandage size A', 'citizen_id': 912},
# >>> {'nick': 'Sverlio77_77', 'item': 'Bandage size C', 'citizen_id': 307}, ...]}
# Example 2 (locked page)
import requests
from lxml.html import fromstring
tree = fromstring(requests.get(link).text) # this is a locked page, so you actually have to log-in first.
link = "https://luxia.e-sim.org/showShout.html?id=1"
result = EsimScraper.get_page_data(link, tree)
# or call the function directly:
result = EsimScraper.showShout(tree)
List of supported base-links / functions (alphabetical order):
- achievement
- article
- auction
- battleDrops
- battles
- battlesByWar
- citizenStatistics
- coalitionStatistics
- companiesForSale
- congressElections
- countryEconomyStatistics
- countryPoliticalStatistics
- countryStatistics
- events
- jobMarket
- law
- monetaryMarket
- newCitizenStatistics
- newCitizens
- news
- newspaper
- newspaperStatistics
- party
- partyStatistics
- presidentalElections
- productMarket
- profile
- region
- showShout
- stockCompany
- stockCompanyMoney
- stockCompanyProducts
(Note: not all of them are tested, some of them may not work properly, as those are dynamic pages that may change over time.)
There are tests for most of them locally, but they are not included in the package for now.
Support the Project:
The development and maintenance of this bot are ongoing. If you find it valuable, please consider supporting it through a donation:
Your contributions will help ensure the bot's continued improvement and availability for the e-Sim community.
Metadata
Release files for e-sim-game-scraper 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| e_sim_game_scraper-0.0.13.tar.gz | 14.3 kB | Without provenance | Details for e_sim_game_scraper-0.0.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| e_sim_game_scraper-0.0.13-py3-none-any.whl | Python 3 | none | any | Details for e_sim_game_scraper-0.0.13-py3-none-any.whl |
Total release size: 29.1 kB
Release files / e_sim_game_scraper-0.0.13.tar.gz
| Download URL | e_sim_game_scraper-0.0.13.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25f24dfa3cb49e777e4e37a5ca15d453f675de31cd7cab2680789455f9a9f422
|
|
BLAKE2b-256 checksum How to use checksums |
bffc02e1f5fbf47de6543f8c55426567301d840d5fe3fbb2f1d1bacc158c059d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / e_sim_game_scraper-0.0.13-py3-none-any.whl
| Download URL | e_sim_game_scraper-0.0.13-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36633e119b96d7f89c268d40b369680ec9b524a7002b1e4157b4f2730cdda773
|
|
BLAKE2b-256 checksum How to use checksums |
be83894673bb1d7c37f8821ab7779d48b77decfc1742805afef71e6403a4e729
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for e-sim-game-scraper 0.0.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.