Skip to main content

Vinted Scraper

Package Version Python Version License

A very simple Python package that scrapes the Vinted site to retrieve information about its items.

Installation

You can install Vinted Scraper using pip:

    pip install vinted_scraper

Usage

The package offers two functions:

  1. The search function gets all the items present on the listing page
  2. The get_item function gets more information about an item, and its seller present on the item detail page.

If you want to parse and manage the scraped data directly you can use the raw functions.

Here's the two-way of how to use the package:

Structured Data

To obtain the scraped data as a vinted_scraper.VintedItem, so you can:

import vinted_scraper


def main():
    params = {
        "search_text": "board games"
        # Add other query parameters like the pagination and so on
    }
    items = vinted_scraper.search("https://www.vinted.com/catalog", params)  # get all the items
    item = items[0]  # get the first Item of the list
    vinted_scraper.get_item(item.url)  # get more info about a particular product


if __name__ == "__main__":
    main()

Structured Data are parsed and converted into a vinted_scraper.VintedItem object. If some attributes are None means that it wasn't found in the scrap. Also, I discard some attribute that I thought was useless.

Raw Data

To obtain the scraped data as a Dict, so you can:

import vinted_scraper


def main():
    params = {
        "search_text": "board games"
        # Add other query parameters like the pagination and so on
    }
    items = vinted_scraper.raw_search("https://www.vinted.com/catalog", params)  # get all the items
    item = items[0]  # get the first Item of the list
    vinted_scraper.get_raw_item(item["url"])  # get more info about the item


if __name__ == "__main__":
    main()

License

This project is licensed under the MIT License - see the LICENSE file for details.

Download files

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

Source Distribution

vinted_scraper-1.1.3.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

vinted_scraper-1.1.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file vinted_scraper-1.1.3.tar.gz.

File metadata

  • Download URL: vinted_scraper-1.1.3.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for vinted_scraper-1.1.3.tar.gz
Algorithm Hash digest
SHA256 6a39420e80d1e7382f8899d76d7dfb342be6578870f89e46eb03644243c91c3d
MD5 9a1d62bc1ce453bba249547f312e76a8
BLAKE2b-256 bf1af7d77afe416e1bd9efb96d7b2a12d9ced9bb6c5b476c143e0a9bd9ff8a4d

See more details on using hashes here.

File details

Details for the file vinted_scraper-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: vinted_scraper-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for vinted_scraper-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 889a03a5dd824dab0ae06e1343315c29ebdd2f69d9aaa81672450575ef8fdd80
MD5 07ff64b06f645ae2879e7456e3a0d2e7
BLAKE2b-256 1bd1524eb9a0dce55d9a5861f685d779d478b69737feeb4319a32792d99f0efd

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 Sentry Error logging StatusPage Status page