Funpay Scrapper
This library provides convenient methods for scraping data from Funpay, a popular online marketplace for buying and selling game items.
Profile
The Profile class represents a Funpay profile and provides methods for retrieving information about the profile.
get_data(): Retrieves the raw HTML data of the profile.rating(): Returns the rating of the profile.nickname(): Returns the nickname of the profile.offers(): Returns a list of offers made by the profile.
Lots
The Lots class represents a Funpay Lots object and provides methods for retrieving information about the lots.
get_data(): Retrieves the raw HTML data of the lots.clean_text(text): Cleans the text by removing extra whitespace and stripping.lots_links(max_limit=10): Returns a dictionary of lots links.sort_lots(sort_by="lowest"): Sorts the lots links by cost.
Examples
from funpay_scrapper.profile import Profile
from funpay_scrapper.lots import Lots
profile = Profile(5682424) # Initializes the Profile object
print(profile.rating()) # Output: ?
print(profile.nickname()) # Output: Syirezz
print("----------------------------------------------------------------")
lots = Lots(1264) # Initializes the Lots object
x = lots.lots_links(10) # Returns a dictionary of lots links. The maximum number of lots links is 10 or more.
for key, value in x.items():
print(key, value) # Prints the dictionary of lots links
# Output:
# 1 {'href': 'https://funpay.com/lots/offer?id=17094859', 'cost': '189.71 ₽', 'seller': 'zvadizz01'}
# 2 {'href': 'https://funpay.com/lots/offer?id=23577867', 'cost': '191.90 ₽', 'seller': 'N3CRO88'}
# 3 {'href': 'https://funpay.com/lots/offer?id=19861734', 'cost': '192.06 ₽', 'seller': 'KeyShop4ik'}
# 4 {'href': 'https://funpay.com/lots/offer?id=30402196', 'cost': '193.23 ₽', 'seller': 'cympaynopom'}
# 5 {'href': 'https://funpay.com/lots/offer?id=30190810', 'cost': '193.23 ₽', 'seller': 'ZhannaStewardess'}
# 6 {'href': 'https://funpay.com/lots/offer?id=17462750', 'cost': '194.09 ₽', 'seller': 'Bibba'}
# 7 {'href': 'https://funpay.com/lots/offer?id=17075913', 'cost': '195.55 ₽', 'seller': 'BoBka92PMT'}
# 8 {'href': 'https://funpay.com/lots/offer?id=30404335', 'cost': '195.57 ₽', 'seller': 'nikzpisdili'}
# 9 {'href': 'https://funpay.com/lots/offer?id=23581531', 'cost': '195.58 ₽', 'seller': 'GoodGameKeys'}
# 10 {'href': 'https://funpay.com/lots/offer?id=21583534', 'cost': '196.74 ₽', 'seller': 'Gastello29'}
print("----------------------------------------------------------------")
from funpay_scrapper.utils import Chat, Home
chat = Chat() # Initializes the Chat object
for message in chat.chat_messages():
print(message, chat.chat_messages()[message]) # Prints the chat messages
home = Home() # Initializes the Home object
print(home.find_game("AFK Arena")) # Output: True, lINK(HREF) | Warning! Please don't confuse chips id with lots id!
Metadata
Release files for funpay-scrapper 0.1.3
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 |
|---|---|---|---|---|
| funpay_scrapper-0.1.3.tar.gz | 7.1 kB | Without provenance | Details for funpay_scrapper-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| funpay_scrapper-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for funpay_scrapper-0.1.3-py3-none-any.whl |
Total release size: 16.2 kB
Release files / funpay_scrapper-0.1.3.tar.gz
| Download URL | funpay_scrapper-0.1.3.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4aeeba15d5e850631615c1d25a3643c88b152807581c71ac428f730e52a95fbf
|
|
BLAKE2b-256 checksum How to use checksums |
882c218f6da9d6b0a19eaa76fd53e68971bb2216058288ca0ec9bd608c7c5b62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / funpay_scrapper-0.1.3-py3-none-any.whl
| Download URL | funpay_scrapper-0.1.3-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
016dd3e3170ca577ed2b38e5f8d6fc3a9c66b4b077d34e6cfc15e16797e73153
|
|
BLAKE2b-256 checksum How to use checksums |
2d9fedb5fff4ffbe60fcc51cdbeed221d3f98e1df268b2c641c62ad08031e40c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for funpay-scrapper 0.1.3
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.