Skip to main content

Nikefy

Python library that amasses metadata from Nike.com website.

GitHub GitHub Build Status codecov PyPI Documentation Status

Overview

Nikefy will allow users to quickly access metadata from Nike.com website such as products and prices data.

  • Create a database that easily queries shoes
  • Easily find sold out products
  • Find out most popular products via ratings

Install

pip install nikefy

Usage

import nikefy as nf

url = 'https://www.nike.com/w/mens-shoes-nik1zy7ok'
nf.get_nike_products(url)
nike_products = nf.get_nike_products(url)
sorted_nike_products = sort_nike_products(nike_products, sort_order='asc')
filtered_nike_products = filter_nike_products(nike_products, price_range=(100, 150), product_type="Men's Shoes")

get_nike_products() gets Men's shoes products from Nike.com website and returns a dataframe

sort_nike_products() sorts Men's shoes products based on price

filter_nike_products() filters Men's shoes based on price range and type

Example

Running the following code

import nikefy as nf

url = 'https://www.nike.com/w/mens-shoes-nik1zy7ok'
nike_products = nf.get_nike_products(url)
print(nike_products)

Outputs something like this to the console

                             Product Name Price  ...                                        Description                                        Product URL
0                         Nike Pegasus 40  $130  ...  A springy ride for every run, the Peg’s famili...  https://www.nike.com/t/pegasus-40-mens-road-ru...
1                     Nike Dunk Low Retro  $110  ...  Created for the hardwood but taken to the stre...  https://www.nike.com/t/dunk-low-retro-mens-sho...
2                        Air Jordan 1 Low  $110  ...  Inspired by the original that debuted in 1985,...  https://www.nike.com/t/air-jordan-1-low-mens-s...
3                        Air Jordan 1 Mid  $125  ...  Inspired by the original AJ1, this mid-top edi...  https://www.nike.com/t/air-jordan-1-mid-mens-s...
4                      Nike Free Metcon 5  $120  ...  When your workouts wade into the nitty gritty,...  https://www.nike.com/t/free-metcon-5-mens-trai...
5                          Cosmic Unity 3  $170  ...  Better for your game, designed with sustainabi...  https://www.nike.com/t/cosmic-unity-3-basketba...

Demo

Details

This project is a pure python project using modern tooling. It uses a Makefile as a command registry, with the following commands:

  • make: list available commands
  • make develop: install and build this library and its dependencies using pip
  • make build: build the library using setuptools
  • make lint: perform static analysis of this library with flake8 and black
  • make format: autoformat this library using black
  • make annotate: run type checking using mypy
  • make test: run automated tests with pytest
  • make coverage: run automated tests with pytest and collect coverage information
  • make dist: package library for distribution

Metadata

Release files for nikefy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nikefy 0.1.2
File Size Uploaded
nikefy-0.1.2.tar.gz 3.1 MB Details

Release files / nikefy-0.1.2.tar.gz

Download URL nikefy-0.1.2.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
4033f425212d9a5fe521fbd1d02af4eb5e6a00fcc855f7568d763b041a09e6c6
BLAKE2b-256 checksum
How to use checksums
c546990018a001413173b02acf66b960cf1bb622522fee04d6e46e2d1cfaed2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page