Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

cnavarreteliz/PyUSPTO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

PyUSPTO

Download granted data from USPTO by countries with Python

Example

For download granted patents to assignees in Chile, you must use the two-digits ISO 3166-2 code.

def query(code):
    output = {
        "_and": [
            {"assignee_country": "CL"}        
        ]
    }
    return output

If you want customize the query, for more information visit http://www.patentsview.org/api/patent.html, where you can choose the most indicated field.

Hence, if you want download granted patents to assignees in Chile at 2015, the query is:

def query(code):
    output = {
        "_and": [
            {"assignee_country": "CL",
            "patent_year": 2015}        
        ]
    }
    return output

Advanced Options

This code include four fields: assignee_country, cpc_group_id, patent_number, patent_year If you need add and/or remove fields, only you must edit data["f"] in download() function.

data["f"] = [
    "assignee_country", 
    "cpc_group_id", 
    "patent_number", 
    "patent_year",
    "inventor_country",
    "assignee_city",
    ...
    "assignee_lastknown_longitude"
]

More information about Public API in http://www.patentsview.org/api/query-language.html

About

Download granted data from USPTO with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published