daneads / pypatent

Search for and retrieve US Patent and Trademark Office Patent Data
GNU General Public License v3.0
71 stars 19 forks source link

Output recovery #8

Open Bhaney44 opened 5 years ago

Bhaney44 commented 5 years ago
screen shot 2019-03-06 at 2 43 09 pm

I am unable to recover the output of the code:

pypatent.Search('rocket', results_limit=2).as_dataframe()

The function returns the information - but I want to collect it in a separate file. How can I gather the information?

Similarly, I am unable to recover the output of the code:

pypatent.Search('rocket', results_limit=2).as_list()

The function returns a box 'Squeeze Text' which I can open, but it stalls Idle. And, I am unable to right click the box to copy it. Ultimately I am trying to get the return results from the search in a file. Any advice would be appreciated.

lixinf commented 4 years ago

df = pypatent.Search('rocket', results_limit=2).as_dataframe() df.to_csv(r'c:\temp\xxxx.csv')