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

Syntax error - prevents search #7

Closed Bhaney44 closed 5 years ago

Bhaney44 commented 5 years ago

I setup a virtual env, and ran:

pip install pypatent

But, when I ran:

pypatent.Search('microsoft')

I received the following error:

-bash: syntax error near unexpected tokenmicrosoft'`

I am not sure why the search won't work because I don't know what 'unexpected token' means. Indeed, I am not sure how to proceed and would appreciate any advice or suggestions.

Bhaney44 commented 5 years ago

I solved this. I needed to run it in iPython. First:

iPython

Second:

import pypatent

Third:

pypatent.Search('microsoft')