Here is a code:
import get_bulk_patent_data functionality
from patentpy.acquire import get_bulk_patent_data
download patents from the first week of 1976 and get data frame
patent_data = get_bulk_patent_data(year = 2021, week = 1, output_file = "patent-data-1.csv")
Which results:
Traceback (most recent call last):
File "C:\Users\XXXXXXXXXX\patentpy\patentpy\convert_xml2.py", line 229, in convert_xml2_to_df
xml2_to_df(curr_file, output_file if output_file is not None else temp_output_file, append, header)
UnicodeEncodeError: 'charmap' codec can't encode character '\u03a9' in position 3361: character maps to
Here is a code:
import get_bulk_patent_data functionality
from patentpy.acquire import get_bulk_patent_data
download patents from the first week of 1976 and get data frame
patent_data = get_bulk_patent_data(year = 2021, week = 1, output_file = "patent-data-1.csv")
Which results:
Traceback (most recent call last):
File "C:\Users\XXXXXXXXXX\patentpy\patentpy\convert_xml2.py", line 229, in convert_xml2_to_df
xml2_to_df(curr_file, output_file if output_file is not None else temp_output_file, append, header)
UnicodeEncodeError: 'charmap' codec can't encode character '\u03a9' in position 3361: character maps to