Skip to content

chipselecta/eenventory-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EEnventory-import

EEnventory a is a Web app for tracking electronic component inventory. EEnventory-import is a tool for importing orders from Digi-Key or Mouser into EEnventory.

Dependencies

EEnventory depends on the following pieces of software:

Requests and Beautiful Soup can be installed with pip, if you have it. Just do:

$ pip install requests
$ pip install beautifulsoup4

Running EEnventory-import

First, create an account on EEventory.

Then, once you have installed the dependencies, log into Digi-Key and/or Mouser in Firefox and dump the cookies to a file, like cookies.txt, using Export Cookies. Then run the tool:

$ python ./EEnventory-import/import-orders.py -d -m <username> <password> cookies.txt

The -d option directs the tool to import orders from Digi-Key, and similarly -m for Mouser.

Known Problems

EEnventory-import can only scrape the first page of Mouser orders. To import other orders, you need explicitly invoke EEnventory-import with the Mouser order page url using the -o <order url option. There is probably a similar problem with Digi-Key.

Usage

Here is the full import-orders.py usage:

usage: import-orders.py [-h] [-m] [-d] [-o ORDER] [-a API_ROOT]
		    username password cookies

Import orders from Distributor (currently Digi-Key and/or Mouser)

positional arguments:
  username              EEnventory username
  password              EEnventory password
  cookies               cookie file containing Distributor cookies

optional arguments:
  -h, --help            show this help message and exit
  -m, --mouser          import orders from Mouser
  -d, --digikey         import orders from Digi-Key
  -o ORDER, --order ORDER
		    URL of order to import
  -a API_ROOT, --api-root API_ROOT
		    root URL of the EEnventory API (no trailing slash)

About

order import tool for EEnventory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages