Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 2.19 KB

README.md

File metadata and controls

43 lines (34 loc) · 2.19 KB

license-badge stars-badge issues-badge maintenance-badge

Nkon.nl-battery-spec-visualizer

The script summarizes the battery online shop nkon.nl in a readable table format. This offers a fast overview of the best battery offers for your project. The script creates a html table and opens it with your browser. The table is sorted for price per capacity in descending order. Batteries that are out of stock are shown at the botom.

The table shows Price in €, Capacity in mAh, Power in A, Price per capacity in €/Ah, In Stock, Refurbished and the Product Link.

Configuration

Enter the page you want to summarize.

urlStr = r"http://eu.nkon.nl/rechargeable/li-ion/18650-size.html"

Uncomment the lines to export the summarized data to .csv.

# df.to_csv('Nkon.nl_battery_overview.csv',
#           index=False, encoding='utf-8-sig', sep=';', decimal=',')

Enter your proxy server.

proxies = {  # proxies if needed
    "http": "http://user:pass@address:port",
    "https": "http://user:pass@address:port",
}

Installation

Install all python package requirements through the pip command
pip install -r requirements.txt

Credits

This project was inspired by L0laapk3's nkon.nl-spec-sorter.