===========
See DEVELOPER.md
- Python 2.7.8
- MySQL-python 1.2.5
- Download the zip file from v0.1 release
- Download the files to be processed to a directory. Note that you should use separate directories for the two periods; don't mix files in the same input directory.
- Unzip the files.
- Run the
parser_wrapper.py
script to parse the raw files into CSV files. - Help for the this script can be obtained by:
python parser_wrapper.py --help
. - A complete example call might look like this:
D:\PatentsView-DB\Scripts\Raw_Data_Parsers> python parser_wrapper.py --input-dir d:/data/smalltest/raw_1976-2001 --output-dir d:/data/smalltest/parsed_1976-2001 --period 1
- Repeat the prior step as needed to get all the desired files parsed.
- Run the
parser_wrapper.py
script to load the data from the CSV files into a MySQL database. - E.g.:
python parser_wrapper.py --mysql 1 --mysql-input-dir "uspto_parsed/1976-2001" --mysql-host name_or_address_of_host --mysql-username your_username --mysql-passwd your_password --mysql-dbname target_database
- Python 2.7.8
- MySQL-python 1.2.5
- Mechanize (installed using easy_install)
- Download the zip file from v0.1 release
- Run the parser_wrapper.py script to parse the raw files into CSV files.
- Help for the this script can be obtained by: python parser_wrapper.py --help .
- A complete example call might look like this: D:\PatentsView-DB\Scripts\Raw_Data_Parsers> python parser_wrapper.py --uspc-create 1 --uspc-input-dir d:/data/smalltest/raw_class
- Run the parser_wrapper.py script to load the data from the CSV files into a MySQL database.
- E.g.: python parser_wrapper.py --uspc-upload 1 --uspc-upload-dir d:/data/smalltest/raw_class --mysql-host name_or_address_of_host --mysql-username your_username --mysql-passwd your_password --appdb target_apps_database --patdb target_grants_database
- Run the parser_wrapper.py script to load the CPC current class data into a MySQL database.
- E.g.: python parser_wrapper.py --cpc-upload 1 --cpc-upload-dir d:/data/smalltest/cpc_class --mysql-host name_or_address_of_host --mysql-username your_username --mysql-passwd your_password --appdb target_apps_database --patdb target_grants_database
- Run the nber_tables.sql statement to create NBER classification tables (nber_category, nber_subcategory, nber) - file in Create folder.
- Run the parser_wrapper.py script to load the NBER class data into a MySQL database (available only for granted patents).
- E.g.: python parser_wrapper.py --nber-upload 1 --nber-upload-dir d:/data/smalltest/nber_class --mysql-host name_or_address_of_host --mysql-username your_username --mysql-passwd your_password --patdb target_grants_database