ExtractPatentTitles.ipynb 8.63 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd\n",
    "import requests\n",
    "from bs4 import BeautifulSoup\n",
    "import time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "patentlist=[\"GB2174291\",\"DE602007050763.4\",\"CN20519047\",\"FR2174291\",\"US10230909\",\"US10677656\",\"US10393575\",\"KR2411479\",\"UCZL201690000486.1\",\"IL253348\",\"UCZL201721259707.X\",\"US10122944\",\"CN201680041040.8\",\"US10706514\",\"USD875153\",\"CNZL201630601367.9\",\"US10161803\",\"UCZL201590000839.3\",\"UC201590000919.9\",\"CN201480075793.1\",\"US9891817\",\"US5556152\",\"US10070074\",\"US10345436\",\"UCZL201490001097.1\",\"US10054718\",\"US7329869\",\"DE112006002383\",\"FR2719167\",\"GB2719167\",\"DE2719167\",\"CN28553107\",\"US10491787\",\"DE602014031816\",\"FR3031033\",\"FR2898670\",\"DE2898670\",\"US10965894\",\"GB3031033\",\"US10962420\",\"US11031432\",\"CN4285029\",\"US9215384\",\"IL203123\",\"CN101802866\",\"DE1478909\",\"GB1478909\",\"US9436367\",\"CN201410721248.7\",\"US9897645\",\"CN201380059705.4\",\"UCZL201390001075.0\",\"US9367219\",\"CN105027557\",\"UCZL201390001120.2\",\"US10182195\",\"UCZL201520743692.9\",\"UCZL201520744056.8\",\"US10153204\",\"UCZL201390000878.4\",\"CNZL201380059706.9\",\"US9945729\",\"UCZL201520382161.1\",\"US9961277\",\"US9900526\",\"FR1478909\",\"CNZL201080018803.X\",\"CN201180045548.2\",\"US9207662\",\"KR101808375\",\"CN201280038760.0\",\"US9235876\",\"US9208542\",\"US9716844\",\"US9706139\",\"US8378290\",\"US9491376\",\"US8373757\",\"US8552375\",\"US8208026\",\"US9237284\",\"US8780208\",\"US9513172\",\"US7884485\",\"US7679048\",\"US6812465\",\"JP3961486\",\"US7034301\",\"US8049163\",\"US8729474\",\"DE602018026049\",\"GB3574641\",\"EM015607311\",\"GB015607311\",\"GB2939413\",\"UCZL201890000657.X\",\"US10996542\",\"FR2939413\",\"CN5050652\",\"US11012647\",\"US11100618\",\"US11032507\",\"CN201880062374.2\",\"US10986288\",\"FR3152537\",\"GB3152537\",\"DE3152537\",\"US11212466\"]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "newlist = []\n",
    "for i, item in enumerate(patentlist):\n",
    "    if \"US\" in item:\n",
    "        newlist.append(item)\n",
    "titles = []\n",
    "for j, i in enumerate(newlist):\n",
    "    # print(i)\n",
    "    # print(\"https://patents.google.com/patent/\" + i + \"/\")\n",
    "    page = requests.get(\"https://patents.google.com/patent/\" + i + \"/\")\n",
    "    # print(page.text)\n",
    "    soup = BeautifulSoup(page.content, 'html.parser')\n",
    "    titles.append(soup.find(\"title\").string)\n",
    "    time.sleep(2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['US10230909B2 - Modular split-processing infrared imaging system \\n        - Google Patents', 'US10677656B2 - Devices and methods for infrared reference pixels \\n        - Google Patents', 'US10393575B2 - Liquid shutter for infrared imaging devices \\n        - Google Patents', 'US10122944B2 - Low power and small form factor infrared imaging \\n        - Google Patents', 'US10706514B2 - Systems and methods for enhanced dynamic range infrared imaging \\n        - Google Patents', 'USD875153S1 - Camera core \\n        - Google Patents', 'US10161803B2 - Wafer level packaging of infrared camera detectors \\n        - Google Patents', 'US9891817B2 - Processing an infrared (IR) image based on swipe gestures \\n        - Google Patents', 'US5556152A - Tailgate \\n        - Google Patents', 'US10070074B2 - Vector processing architectures for infrared camera electronics \\n        - Google Patents', 'US10345436B2 - System and method for detecting an object or recess on a surface \\n        - Google Patents', 'US10054718B2 - Systems and methods for machining materials \\n        - Google Patents', 'US7329869B2 - Camera system \\n        - Google Patents', 'US10491787B2 - Electrostatic discharge mitigation systems and methods for imaging devices \\n        - Google Patents', 'US10965894B2 - Short wave infrared image sensor with automatic exposure and dynamic range control \\n        - Google Patents', 'US10962420B2 - Pulse detection and imaging systems and methods \\n        - Google Patents', 'US11031432B2 - Vertical microbolometer contact systems and methods \\n        - Google Patents', 'US9215384B2 - Method of processing an infrared image, infrared image capturing system and computer readable medium \\n        - Google Patents', 'US9436367B2 - Processing an infrared (IR) image based on swipe gestures \\n        - Google Patents', 'US9897645B2 - Illuminator for wafer prober and related methods \\n        - Google Patents', 'US9367219B2 - Processing an infrared (IR) image based on swipe gestures \\n        - Google Patents', 'US10182195B2 - Protective window for an infrared sensor array \\n        - Google Patents', 'US10153204B2 - Wafer level packaging of reduced-height infrared detectors \\n        - Google Patents', 'US9945729B2 - Systems and methods for enhanced bolometer response \\n        - Google Patents', 'US9961277B2 - Infrared focal plane array heat spreaders \\n        - Google Patents', 'US9900526B2 - Techniques to compensate for calibration drifts in infrared imaging devices \\n        - Google Patents', 'US9207662B2 - Systems and methods for machining materials \\n        - Google Patents', 'US9235876B2 - Row and column noise reduction in thermal images \\n        - Google Patents', 'US9208542B2 - Pixel-wise noise reduction in thermal images \\n        - Google Patents', 'US9716844B2 - Low power and small form factor infrared imaging \\n        - Google Patents', 'US9706139B2 - Low power and small form factor infrared imaging \\n        - Google Patents', 'US8378290B1 - Sensor calibration systems and methods for infrared cameras \\n        - Google Patents', 'US9491376B2 - Flat field correction for infrared cameras \\n        - Google Patents', 'US8373757B1 - Flat field correction for infrared cameras \\n        - Google Patents', 'US8552375B1 - Switched capacitor filter systems and methods \\n        - Google Patents', 'US8208026B2 - Systems and methods for processing infrared images \\n        - Google Patents', 'US9237284B2 - Systems and methods for processing infrared images \\n        - Google Patents', 'US8780208B2 - Systems and methods for processing infrared images \\n        - Google Patents', 'US9513172B2 - Wafer level packaging of infrared camera detectors \\n        - Google Patents', 'US7884485B1 - Semiconductor device interconnect systems and methods \\n        - Google Patents', 'US7679048B1 - Systems and methods for selecting microbolometers within microbolometer focal plane arrays \\n        - Google Patents', 'US6812465B2 - Microbolometer focal plane array methods and circuitry \\n        - Google Patents', 'US7034301B2 - Microbolometer focal plane array systems and methods \\n        - Google Patents', 'US8049163B1 - Calibration systems and methods for infrared cameras \\n        - Google Patents', 'US8729474B1 - Microbolometer contact systems and methods \\n        - Google Patents', 'US10996542B2 - Infrared imaging system shutter assembly with integrated thermister \\n        - Google Patents', 'US11012647B2 - Low cost and high performance bolometer circuity and methods \\n        - Google Patents', 'US11100618B2 - Systems and methods for reducing low-frequency non-uniformity in images \\n        - Google Patents', 'US11032507B2 - Frame rate and associated device manufacturing techniques for imaging systems and methods \\n        - Google Patents', 'US10986288B2 - Flat field correction systems and methods for infrared cameras \\n        - Google Patents', 'US11212466B2 - Multiple microbolometer selection for simultaneous readout \\n        - Google Patents']\n"
     ]
    }
   ],
   "source": [
    "print(titles)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3.8.10 64-bit",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.10"
  },
  "orig_nbformat": 4,
  "vscode": {
   "interpreter": {
    "hash": "916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1"
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}