Skip to main content

A python API wrapper for blocket.se

Project description

BlocketAPI

PyPI version License Python PyPI - Downloads

BlocketAPI allows users to search blocket.se for ads.

Blocket is one of Sweden's largest online marketplaces. It was founded in 1996 and allows users to buy and sell a wide range of items, including cars, real estate, jobs, services, and second-hand goods. The platform is known for its extensive reach and user-friendly interface, making it a popular choice for Swedes looking to purchase or sell items quickly and efficiently.

[!NOTE]
Blocket recently released a new version of their site which caused this package to break. But do not fear, we are actively working to try and restore all functionality. More info in issue #43.

🧑‍💻️ Install

Install BlocketAPI via PyPI...

pip install blocket-api

or use blocket-api.se without installing anything!

💁‍♀️ Usage

from blocket_api import BlocketAPI, Category, Location, SortOrder

api = BlocketAPI()

result = api.search(
    "Vinterdäck Audi",
    sort_order=SortOrder.PRICE_ASC,
    locations=[Location.STOCKHOLM, Location.UPPSALA],
    category=Category.FORDONSTILLBEHOR,
)

📝 Notes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blocket_api-0.3.9.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blocket_api-0.3.9-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file blocket_api-0.3.9.tar.gz.

File metadata

  • Download URL: blocket_api-0.3.9.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for blocket_api-0.3.9.tar.gz
Algorithm Hash digest
SHA256 762f6eb6473c42c5030cd4858da7ac902926847a108d1013b6713881be11f7b9
MD5 5f8052ac8cd8315646d10c9192331e8c
BLAKE2b-256 031eeb830b02dd9f4a36fc698ce9f3030762d61ca0e06afdb7f66f2a73d5fb99

See more details on using hashes here.

File details

Details for the file blocket_api-0.3.9-py3-none-any.whl.

File metadata

  • Download URL: blocket_api-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for blocket_api-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 af2ccea209739fc2bce86acf8f00a43278ec1631cfd323e9c0aaf5582c4ffa79
MD5 9477cccc143d4d84d53987ba9a2e0fe3
BLAKE2b-256 30cdc8d81fc2bc847f91faf33b9864aa6271f3651b8e849826e4198f870f60b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page