{"id":20226704,"url":"https://github.com/kailuser/funpay-scrapper","last_synced_at":"2025-04-10T17:07:50.388Z","repository":{"id":246147248,"uuid":"820237812","full_name":"KailUser/funpay-scrapper","owner":"KailUser","description":"This library provides convenient methods for scraping data from Funpay, a popular online marketplace for buying and selling game items","archived":false,"fork":false,"pushed_at":"2024-06-27T11:11:10.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T18:15:55.929Z","etag":null,"topics":["beautifulsoup","bs4","funpay","pypi","pypi-package","pypi-source","requests","scrapping"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/funpay-scrapper/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KailUser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-26T04:46:00.000Z","updated_at":"2024-10-30T09:55:34.000Z","dependencies_parsed_at":"2024-06-26T05:48:42.466Z","dependency_job_id":"9f9f1a4b-3d2e-4fb4-8577-4c05099a6573","html_url":"https://github.com/KailUser/funpay-scrapper","commit_stats":null,"previous_names":["kailuser/funpay-scrapper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KailUser%2Ffunpay-scrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KailUser%2Ffunpay-scrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KailUser%2Ffunpay-scrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KailUser%2Ffunpay-scrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KailUser","download_url":"https://codeload.github.com/KailUser/funpay-scrapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248260737,"owners_count":21074215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beautifulsoup","bs4","funpay","pypi","pypi-package","pypi-source","requests","scrapping"],"created_at":"2024-11-14T07:19:46.878Z","updated_at":"2025-04-10T17:07:50.363Z","avatar_url":"https://github.com/KailUser.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Funpay Scrapper\n\n[![Upload Python Package](https://github.com/KailUser/funpay-scrapper/actions/workflows/publish.yml/badge.svg)](https://github.com/KailUser/funpay-scrapper/actions/workflows/publish.yml)\n\nThis library provides convenient methods for scraping data from Funpay, a popular online marketplace for buying and selling game items.\n\n### Profile\nThe `Profile` class represents a Funpay profile and provides methods for retrieving information about the profile.\n\n- `get_data()`: Retrieves the raw HTML data of the profile.\n- `rating()`: Returns the rating of the profile.\n- `nickname()`: Returns the nickname of the profile.\n- `offers()`: Returns a list of offers made by the profile.\n\n### Lots\nThe `Lots` class represents a Funpay Lots object and provides methods for retrieving information about the lots.\n\n- `get_data()`: Retrieves the raw HTML data of the lots.\n- `clean_text(text)`: Cleans the text by removing extra whitespace and stripping.\n- `lots_links(max_limit=10)`: Returns a dictionary of lots links.\n- `sort_lots(sort_by=\"lowest\")`: Sorts the lots links by cost.\n\n## Examples\n\n```python\nfrom funpay_scrapper.profile import Profile\nfrom funpay_scrapper.lots import Lots\n\nprofile = Profile(5682424) # Initializes the Profile object\nprint(profile.rating()) # Output: ?\nprint(profile.nickname()) # Output: Syirezz\n\nprint(\"----------------------------------------------------------------\")\n\nlots = Lots(1264) # Initializes the Lots object\nx = lots.lots_links(10) # Returns a dictionary of lots links. The maximum number of lots links is 10 or more.\nfor key, value in x.items():\n    print(key, value) # Prints the dictionary of lots links\n# Output:\n# 1 {'href': 'https://funpay.com/lots/offer?id=17094859', 'cost': '189.71 ₽', 'seller': 'zvadizz01'}\n# 2 {'href': 'https://funpay.com/lots/offer?id=23577867', 'cost': '191.90 ₽', 'seller': 'N3CRO88'}\n# 3 {'href': 'https://funpay.com/lots/offer?id=19861734', 'cost': '192.06 ₽', 'seller': 'KeyShop4ik'}\n# 4 {'href': 'https://funpay.com/lots/offer?id=30402196', 'cost': '193.23 ₽', 'seller': 'cympaynopom'}\n# 5 {'href': 'https://funpay.com/lots/offer?id=30190810', 'cost': '193.23 ₽', 'seller': 'ZhannaStewardess'}\n# 6 {'href': 'https://funpay.com/lots/offer?id=17462750', 'cost': '194.09 ₽', 'seller': 'Bibba'}\n# 7 {'href': 'https://funpay.com/lots/offer?id=17075913', 'cost': '195.55 ₽', 'seller': 'BoBka92PMT'}\n# 8 {'href': 'https://funpay.com/lots/offer?id=30404335', 'cost': '195.57 ₽', 'seller': 'nikzpisdili'}\n# 9 {'href': 'https://funpay.com/lots/offer?id=23581531', 'cost': '195.58 ₽', 'seller': 'GoodGameKeys'}\n# 10 {'href': 'https://funpay.com/lots/offer?id=21583534', 'cost': '196.74 ₽', 'seller': 'Gastello29'}\n\nprint(\"----------------------------------------------------------------\")\nfrom funpay_scrapper.utils import Chat, Home\n\nchat = Chat() # Initializes the Chat object\nfor message in chat.chat_messages():\n    print(message, chat.chat_messages()[message]) # Prints the chat messages\n\nhome = Home() # Initializes the Home object\nprint(home.find_game(\"AFK Arena\")) # Output: True, lINK(HREF)  | Warning! Please don't confuse chips id with lots id! \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkailuser%2Ffunpay-scrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkailuser%2Ffunpay-scrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkailuser%2Ffunpay-scrapper/lists"}