Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
publication_title = bs.find('invention-title').text
publication_num = bs['file'].split("-")[0]
publication_date = bs.find('publication-reference').find('date').text
application_type = bs.find('application-reference')['appl-type']
classifications = []
for classes in bs.find_all('classifications-ipcr'):
for el in classes.find_all('classification-ipcr'):
cclassifications.append(el.find('section').text
+ el.find('class').text
+ el.find('subclass').text)
inventors = []
for parties in bs.find_all('parties'):
for applicants in parties.find_all('applicants'):
for el in applicants.find_all('addressbook'):
inventors.append(el.find('first-name').text
+ " " + el.find('last-name').text)
abstracts = []
for el in bs.find_all('abstract'):
abstracts.append(el.text)
descriptions = []
for el in bs.find_all('description'):
descriptions.append(el.text)
claims = []
for el in bs.find_all('claim'):
claims.append(el.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.