title: Google patents scraping with Beautiful Soup
body: <p>I am trying to scrape data from Google Patents with Beautiful Soup and add some columns to an existing csv. <a href="https://patents.google.com/patent/EP3017304B1/en" rel="nofollow noreferrer">Here</a> is an example of patent result. Here is my code:</p>
  <pre><code>with open ('patentdatacleaned.csv', 'r', encoding=&quot;ISO-8859-1&quot;) as csv_file:
      csv_reader = csv.reader(csv_file)
      next(csv_reader)
      for line in csv_reader:
          for row in line[13].split():
              r = requests.get(row)
          soup = BeautifulSoup(r.content)
          g_data = soup.find_all(&quot;div&quot;, {&quot;class&quot;:&quot;description&quot;})
          #with open('newpatentdata_class.csv', 'w', newline='', encoding=&quot;UTF-8&quot;) as write_obj:
          #    csv_writer = writer(write_obj)
          for item in g_data:
              print(item)       
          break
  </code></pre>
  <p>I managed this with the Claims, Description and Abstract, but I am not able to extract the Classification codes with the description. I tried various classes and div's and looked in detail at the child div's, but I can't find the problem. Please help.</p>