diff --git a/your-code/main.ipynb b/your-code/main.ipynb
index 1fe9046..fd22c9b 100755
--- a/your-code/main.ipynb
+++ b/your-code/main.ipynb
@@ -36,13 +36,14 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 503,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"from bs4 import BeautifulSoup\n",
- "import pandas as pd"
+ "import pandas as pd\n",
+ "import re"
]
},
{
@@ -54,7 +55,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 504,
"metadata": {},
"outputs": [],
"source": [
@@ -64,11 +65,4223 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 505,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "Trending developers on GitHub today · GitHub \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ "\n",
+ "\n",
+ "\n",
+ "
\n",
+ "
Skip to content \n",
+ "
\n",
+ " \n",
+ " \n",
+ "\n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
{{ message }}
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "
\n",
+ "\n",
+ " \n",
+ "
\n",
+ "\n",
+ "
\n",
+ "
Trending \n",
+ "
\n",
+ " These are the developers building the hot tools today.\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "
\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " 1\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ " University of Duisburg-Essen
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 2\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 3\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your …\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 4\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " A type-safe, Swift-language layer over SQLite3.\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 5\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " Watch your favorite YouTube content on Kodi\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 6\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " LlamaIndex (GPT Index) is a project that provides a central interface to connect your LLM's with external data.\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 7\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " Devour all outputs in a Nix flake.\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 8\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " 前端学习笔记 & 踩坑日记 & 冷知识,记录一些工作中遇到的问题,长期更新\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 9\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 10\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ "👓 Node.js module that tells you when your package npm dependencies are out of date.\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 11\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " An easy-to-use Rust framework for building robust and performant APIs\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 12\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 13\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ "⚡ Building applications with LLMs through composability ⚡ \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 14\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " no-graph is a graph view for notion\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 15\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ " Google
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 16\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " Various kernel exploits\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 17\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " Authentication, simple and clean\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 18\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 19\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " Also known as rtsp-simple-server. ready-to-use RTSP / RTMP / LL-HLS / WebRTC server and proxy that allows to read, publish and proxy vide…\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 20\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " Make bilingual epub books Using AI translate\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 21\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " Benchmarks of approximate nearest neighbor libraries in Python\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 22\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ " Jenosam Pty Ltd
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 23\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " Go microservice template for Kubernetes\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 24\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " Generate TypeScript types from OpenAPI 3 specs\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ " 25\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ " Popular repo
\n",
+ "\n",
+ "\n",
+ " ESPHome component to monitor and control a Jikong Battery Management System (JK-BMS) via UART-TTL or BLE\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "\n",
+ "Follow \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ "
\n",
+ "\n",
+ "
\n",
+ "
\n",
+ " \n",
+ " \n",
+ "
\n",
+ "\n",
+ " \n",
+ " \n",
+ " \n",
+ " You can’t perform that action at this time.\n",
+ "
\n",
+ "
\n",
+ "
\n",
+ " \n",
+ " \n",
+ "
You signed in with another tab or window. Reload to refresh your session. \n",
+ "
You signed out in another tab or window. Reload to refresh your session. \n",
+ "
\n",
+ "
\n",
+ "\n",
+ " \n",
+ "\n",
+ "\n",
+ "\n",
+ " \n",
+ " \n",
+ " \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
\n",
+ "\n",
+ "
\n",
+ "\n",
+ " \n",
+ " \n",
+ "\n",
+ " \n",
+ " \n",
+ " \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
\n",
+ "\n",
+ ""
+ ]
+ },
+ "execution_count": 505,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
"source": [
- "# your code here"
+ "# your code here\n",
+ "response = requests.get(url)\n",
+ "soup = BeautifulSoup(response.content)\n",
+ "soup"
]
},
{
@@ -126,11 +4339,57 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 506,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "['Johannes Köster',\n",
+ " 'Patrick von Platen',\n",
+ " 'Leonid Bugaev',\n",
+ " 'Stephen Celis',\n",
+ " 'anxdpanic',\n",
+ " 'Jerry Liu',\n",
+ " 'Sridhar Ratnakumar',\n",
+ " 'lijianan',\n",
+ " 'Thomas Eizinger',\n",
+ " 'Alan Shaw',\n",
+ " 'Luca Palmieri',\n",
+ " 'Michael Bui',\n",
+ " 'Harrison Chase',\n",
+ " 'HeYunfei',\n",
+ " 'Paul Beusterien',\n",
+ " 'bcoles',\n",
+ " 'pilcrowOnPaper',\n",
+ " 'Bjorn Lu',\n",
+ " 'Alessandro Ros',\n",
+ " 'yihong',\n",
+ " 'Erik Bernhardsson',\n",
+ " 'Hamish Willee',\n",
+ " 'Stefan Prodan',\n",
+ " 'Drew Powers',\n",
+ " 'Sebastian Muszynski']"
+ ]
+ },
+ "execution_count": 506,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
"source": [
- "# your code here"
+ "# your code here\n",
+ "data = soup.find_all(\"h1\", attrs = {\"class\": \"h3 lh-condensed\"})\n",
+ "\n",
+ "i = 0\n",
+ "name_list = []\n",
+ "\n",
+ "for item in data:\n",
+ " name = item.get_text().strip()\n",
+ " name_list.append(name)\n",
+ " i += 1\n",
+ " \n",
+ "name_list\n"
]
},
{
@@ -144,7 +4403,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 507,
"metadata": {},
"outputs": [],
"source": [
@@ -154,11 +4413,62 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 508,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "['xtekky/gpt4free',\n",
+ " 'AIGC-Audio/AudioGPT',\n",
+ " 'alaeddine-13/thinkgpt',\n",
+ " 'deep-floyd/IF',\n",
+ " 'NVIDIA/NeMo-Guardrails',\n",
+ " 'gaomingqi/Track-Anything',\n",
+ " 'nlpxucan/WizardLM',\n",
+ " 'CVI-SZU/Linly',\n",
+ " 'deforum-art/deforum-stable-diffusion',\n",
+ " 'GFW-knocker/gfw_resist_tls_proxy',\n",
+ " 'X-PLUG/mPLUG-Owl',\n",
+ " 'UX-Decoder/Segment-Everything-Everywhere-All-At-Once',\n",
+ " 'bhaskatripathi/pdfGPT',\n",
+ " 'openai/plugins-quickstart',\n",
+ " 'freedmand/semantra',\n",
+ " 'openai/chatgpt-retrieval-plugin',\n",
+ " 'aniskoubaa/rosgpt',\n",
+ " 'ultralytics/ultralytics',\n",
+ " 'farshadz1997/Microsoft-Rewards-bot',\n",
+ " '521xueweihan/HelloGitHub',\n",
+ " 'Jun-CEN/SegmentAnyRGBD',\n",
+ " 'open-mmlab/mmagic',\n",
+ " 'localstack/localstack',\n",
+ " 'xtekky/chatgpt-clone',\n",
+ " 'bookfere/Ebook-Translator-Calibre-Plugin']"
+ ]
+ },
+ "execution_count": 508,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
"source": [
- "# your code here"
+ "# your code here\n",
+ "response = requests.get(url)\n",
+ "soup = BeautifulSoup(response.content)\n",
+ "repo = soup.find_all(\"h2\", attrs = {\"class\": \"h3 lh-condensed\"})\n",
+ "\n",
+ "i = 0\n",
+ "repo_list = []\n",
+ "\n",
+ "for item in repo:\n",
+ " name = item.get_text().strip().replace(\" \", \"\").replace(\"\\n\", \"\")\n",
+ "\n",
+ " repo_list.append(name)\n",
+ " i += 1\n",
+ " \n",
+ "repo_list\n",
+ "\n",
+ "\n"
]
},
{
@@ -171,7 +4481,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 509,
"metadata": {},
"outputs": [],
"source": [
@@ -181,11 +4491,62 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 510,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "//upload.wikimedia.org/wikipedia/en/thumb/e/e7/Cscr-featured.svg/20px-Cscr-featured.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/en/thumb/8/8c/Extended-protection-shackle.svg/20px-Extended-protection-shackle.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/d/df/Walt_Disney_1946.JPG/220px-Walt_Disney_1946.JPG\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/8/87/Walt_Disney_1942_signature.svg/150px-Walt_Disney_1942_signature.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Walt_Disney_Birthplace_Exterior_Hermosa_Chicago_Illinois.jpg/220px-Walt_Disney_Birthplace_Exterior_Hermosa_Chicago_Illinois.jpg\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Walt_Disney_envelope_ca._1921.jpg/220px-Walt_Disney_envelope_ca._1921.jpg\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Trolley_Troubles_poster.jpg/170px-Trolley_Troubles_poster.jpg\n",
+ "//upload.wikimedia.org/wikipedia/en/thumb/4/4e/Steamboat-willie.jpg/170px-Steamboat-willie.jpg\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Walt_Disney_1935.jpg/170px-Walt_Disney_1935.jpg\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/c/cd/Walt_Disney_Snow_white_1937_trailer_screenshot_%2813%29.jpg/220px-Walt_Disney_Snow_white_1937_trailer_screenshot_%2813%29.jpg\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/1/15/Disney_drawing_goofy.jpg/170px-Disney_drawing_goofy.jpg\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/8/8c/WaltDisneyplansDisneylandDec1954.jpg/220px-WaltDisneyplansDisneylandDec1954.jpg\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Walt_disney_portrait_right.jpg/170px-Walt_disney_portrait_right.jpg\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Walt_Disney_Grave.JPG/170px-Walt_Disney_Grave.JPG\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Roy_O._Disney_with_Company_at_Press_Conference.jpg/170px-Roy_O._Disney_with_Company_at_Press_Conference.jpg\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/1/13/DisneySchiphol1951.jpg/220px-DisneySchiphol1951.jpg\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Disney1968.jpg/170px-Disney1968.jpg\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Disney_Oscar_1953_%28cropped%29.jpg/170px-Disney_Oscar_1953_%28cropped%29.jpg\n",
+ "//upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/30px-Commons-logo.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/38px-Wikisource-logo.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikiquote-logo.svg/34px-Wikiquote-logo.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/e/e3/Disneyland_Resort_logo.svg/135px-Disneyland_Resort_logo.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/d/da/Animation_disc.svg/20px-Animation_disc.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/en/thumb/6/69/P_vip.svg/19px-P_vip.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Magic_Kingdom_castle.jpg/15px-Magic_Kingdom_castle.jpg\n",
+ "//upload.wikimedia.org/wikipedia/en/thumb/e/e7/Video-x-generic.svg/19px-Video-x-generic.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/a/a3/Flag_of_Los_Angeles_County%2C_California.svg/21px-Flag_of_Los_Angeles_County%2C_California.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/8/8c/Blank_television_set.svg/21px-Blank_television_set.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/en/thumb/a/a4/Flag_of_the_United_States.svg/21px-Flag_of_the_United_States.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/14px-Commons-logo.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikiquote-logo.svg/16px-Wikiquote-logo.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/18px-Wikisource-logo.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/21px-Wikidata-logo.svg.png\n",
+ "//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png\n",
+ "//en.wikipedia.org/wiki/Special:CentralAutoLogin/start?type=1x1\n"
+ ]
+ }
+ ],
"source": [
- "# your code here"
+ "# your code here\n",
+ "response = requests.get(url)\n",
+ "soup = BeautifulSoup(response.content)\n",
+ "body = soup.find_all(\"div\", attrs = {\"id\": \"bodyContent\"})\n",
+ "image = body[0].find_all(\"img\")\n",
+ "for img in image:\n",
+ " print(img.get(\"src\"))\n",
+ "\n"
]
},
{
@@ -197,7 +4558,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 544,
"metadata": {},
"outputs": [],
"source": [
@@ -207,11 +4568,35 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 545,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "English 6 644 000\n",
+ "Русский 1 909 000\n",
+ "日本語 1 370 000\n",
+ "Deutsch 2 792 000\n",
+ "Español 1 854 000\n",
+ "Français 2 514 000\n",
+ "Italiano 1 806 000\n",
+ "中文 1 347 000\n",
+ "فارسی فارسی\n",
+ "Português 1 101 000\n"
+ ]
+ }
+ ],
"source": [
- "# your code here"
+ "# your code here\n",
+ "response = requests.get(url)\n",
+ "soup = BeautifulSoup(response.content)\n",
+ "languages = soup.find_all(\"div\", attrs = {\"class\": \"central-featured-lang\"})\n",
+ "for item in languages:\n",
+ " languages = item.find(\"strong\").get_text().strip()\n",
+ " articles = item.find(\"bdi\").text.strip().split(\"+\")[0]\n",
+ " print(languages, articles)"
]
},
{
@@ -224,7 +4609,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 546,
"metadata": {},
"outputs": [],
"source": [
@@ -234,11 +4619,117 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 547,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " languages \n",
+ " speakers \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " 0 \n",
+ " Mandarin Chinese(incl. Standard Chinese, but e... \n",
+ " 939 \n",
+ " \n",
+ " \n",
+ " 1 \n",
+ " Spanish \n",
+ " 485 \n",
+ " \n",
+ " \n",
+ " 2 \n",
+ " English \n",
+ " 380 \n",
+ " \n",
+ " \n",
+ " 3 \n",
+ " Hindi(excl. Urdu, and other languages) \n",
+ " 345 \n",
+ " \n",
+ " \n",
+ " 4 \n",
+ " Portuguese \n",
+ " 236 \n",
+ " \n",
+ " \n",
+ " 5 \n",
+ " Bengali \n",
+ " 234 \n",
+ " \n",
+ " \n",
+ " 6 \n",
+ " Russian \n",
+ " 147 \n",
+ " \n",
+ " \n",
+ " 7 \n",
+ " Japanese \n",
+ " 123 \n",
+ " \n",
+ " \n",
+ " 8 \n",
+ " Yue Chinese(incl. Cantonese) \n",
+ " 86 \n",
+ " \n",
+ " \n",
+ " 9 \n",
+ " Vietnamese \n",
+ " 85 \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " languages speakers\n",
+ "0 Mandarin Chinese(incl. Standard Chinese, but e... 939\n",
+ "1 Spanish 485\n",
+ "2 English 380\n",
+ "3 Hindi(excl. Urdu, and other languages) 345\n",
+ "4 Portuguese 236\n",
+ "5 Bengali 234\n",
+ "6 Russian 147\n",
+ "7 Japanese 123\n",
+ "8 Yue Chinese(incl. Cantonese) 86\n",
+ "9 Vietnamese 85"
+ ]
+ },
+ "execution_count": 547,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
"source": [
- "# your code here"
+ "# your code here\n",
+ "table = pd.read_html(url) \n",
+ "df = table[0]\n",
+ "new_df = pd.DataFrame()\n",
+ "new_df[\"languages\"] = df.iloc[:, 0]\n",
+ "new_df[\"speakers\"] = df.iloc[:, 1].astype(int) \n",
+ "\n",
+ "new_df.head(10)"
]
},
{
@@ -251,7 +4742,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 515,
"metadata": {},
"outputs": [],
"source": [
@@ -261,11 +4752,178 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 615,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " title \n",
+ " year \n",
+ " director \n",
+ " stars \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " 1 \n",
+ " Os Condenados de Shawshank \n",
+ " 1994 \n",
+ " Frank Darabont (dir.), Tim Robbins, Morgan Fre... \n",
+ " 9.2 \n",
+ " \n",
+ " \n",
+ " 2 \n",
+ " O Padrinho \n",
+ " 1972 \n",
+ " Francis Ford Coppola (dir.), Marlon Brando, Al... \n",
+ " 9.2 \n",
+ " \n",
+ " \n",
+ " 3 \n",
+ " O Cavaleiro das Trevas \n",
+ " 2008 \n",
+ " Christopher Nolan (dir.), Christian Bale, Heat... \n",
+ " 9.0 \n",
+ " \n",
+ " \n",
+ " 4 \n",
+ " O Padrinho: Parte II \n",
+ " 1974 \n",
+ " Francis Ford Coppola (dir.), Al Pacino, Robert... \n",
+ " 9.0 \n",
+ " \n",
+ " \n",
+ " 5 \n",
+ " Doze Homens em Fúria \n",
+ " 1957 \n",
+ " Sidney Lumet (dir.), Henry Fonda, Lee J. Cobb \n",
+ " 9.0 \n",
+ " \n",
+ " \n",
+ " ... \n",
+ " ... \n",
+ " ... \n",
+ " ... \n",
+ " ... \n",
+ " \n",
+ " \n",
+ " 246 \n",
+ " O Gigante de Ferro \n",
+ " 1999 \n",
+ " Brad Bird (dir.), Eli Marienthal, Harry Connic... \n",
+ " 8.0 \n",
+ " \n",
+ " \n",
+ " 247 \n",
+ " As Serviçais \n",
+ " 2011 \n",
+ " Tate Taylor (dir.), Viola Davis, Emma Stone \n",
+ " 8.0 \n",
+ " \n",
+ " \n",
+ " 248 \n",
+ " Aladdin \n",
+ " 1992 \n",
+ " Ron Clements (dir.), Scott Weinger, Robin Will... \n",
+ " 8.0 \n",
+ " \n",
+ " \n",
+ " 249 \n",
+ " Dersu Uzala - A Águia da Estepe \n",
+ " 1975 \n",
+ " Akira Kurosawa (dir.), Maksim Munzuk, Yuriy So... \n",
+ " 8.0 \n",
+ " \n",
+ " \n",
+ " 250 \n",
+ " Danças com Lobos \n",
+ " 1990 \n",
+ " Kevin Costner (dir.), Kevin Costner, Mary McDo... \n",
+ " 8.0 \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
250 rows × 4 columns
\n",
+ "
"
+ ],
+ "text/plain": [
+ " title year \\\n",
+ "1 Os Condenados de Shawshank 1994 \n",
+ "2 O Padrinho 1972 \n",
+ "3 O Cavaleiro das Trevas 2008 \n",
+ "4 O Padrinho: Parte II 1974 \n",
+ "5 Doze Homens em Fúria 1957 \n",
+ ".. ... ... \n",
+ "246 O Gigante de Ferro 1999 \n",
+ "247 As Serviçais 2011 \n",
+ "248 Aladdin 1992 \n",
+ "249 Dersu Uzala - A Águia da Estepe 1975 \n",
+ "250 Danças com Lobos 1990 \n",
+ "\n",
+ " director stars \n",
+ "1 Frank Darabont (dir.), Tim Robbins, Morgan Fre... 9.2 \n",
+ "2 Francis Ford Coppola (dir.), Marlon Brando, Al... 9.2 \n",
+ "3 Christopher Nolan (dir.), Christian Bale, Heat... 9.0 \n",
+ "4 Francis Ford Coppola (dir.), Al Pacino, Robert... 9.0 \n",
+ "5 Sidney Lumet (dir.), Henry Fonda, Lee J. Cobb 9.0 \n",
+ ".. ... ... \n",
+ "246 Brad Bird (dir.), Eli Marienthal, Harry Connic... 8.0 \n",
+ "247 Tate Taylor (dir.), Viola Davis, Emma Stone 8.0 \n",
+ "248 Ron Clements (dir.), Scott Weinger, Robin Will... 8.0 \n",
+ "249 Akira Kurosawa (dir.), Maksim Munzuk, Yuriy So... 8.0 \n",
+ "250 Kevin Costner (dir.), Kevin Costner, Mary McDo... 8.0 \n",
+ "\n",
+ "[250 rows x 4 columns]"
+ ]
+ },
+ "execution_count": 615,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
"source": [
- "# your code here"
+ "# your code here\n",
+ "response = requests.get(url)\n",
+ "soup = BeautifulSoup(response.content, 'html.parser')\n",
+ "\n",
+ "movies = soup.find_all('tr')\n",
+ "movie_dict = {}\n",
+ "i = 0\n",
+ "for movie in movies[1:]:\n",
+ " title_col = movie.find('td', class_='titleColumn')\n",
+ " title = title_col.a.get_text().strip()\n",
+ " year = title_col.find('span', attrs = {\"class\": 'secondaryInfo'}).get_text().strip('()')\n",
+ "\n",
+ " director = movie.find('td', attrs= {\"class\": 'titleColumn'}).a[\"title\"]\n",
+ " \n",
+ " \n",
+ " stars_col = movie.find('td', attrs = {\"class\": 'ratingColumn imdbRating'})\n",
+ " stars = stars_col.find('strong').get_text()\n",
+ " i+=1\n",
+ " movie_dict[i] = {\"title\":title, \"year\":year, \"director\":director, \"stars\":stars}\n",
+ "\n",
+ "\n",
+ "df = pd.DataFrame(movie_dict).T\n",
+ "df\n"
]
},
{
@@ -277,7 +4935,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 617,
"metadata": {},
"outputs": [],
"source": [
@@ -287,11 +4945,152 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 671,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " title \n",
+ " year \n",
+ " summary \n",
+ " \n",
+ " \n",
+ " \n",
+ " \n",
+ " 1 \n",
+ " Pesadelo em Elm Street \n",
+ " 1984 \n",
+ " Teenager Nancy Thompson must uncover the dark ... \n",
+ " \n",
+ " \n",
+ " 2 \n",
+ " Despertares \n",
+ " 1990 \n",
+ " The victims of an encephalitis epidemic many y... \n",
+ " \n",
+ " \n",
+ " 3 \n",
+ " Liga de Mulheres \n",
+ " 1992 \n",
+ " Two sisters join the first female professional... \n",
+ " \n",
+ " \n",
+ " 4 \n",
+ " Um Bairro em Nova Iorque \n",
+ " 1993 \n",
+ " A father becomes worried when a local gangster... \n",
+ " \n",
+ " \n",
+ " 5 \n",
+ " Anjos em Campo \n",
+ " 1994 \n",
+ " When a boy prays for a chance to have a family... \n",
+ " \n",
+ " \n",
+ " 6 \n",
+ " Tempo de Matar \n",
+ " 1996 \n",
+ " In Clanton, Mississippi, a fearless young lawy... \n",
+ " \n",
+ " \n",
+ " 7 \n",
+ " Amistad \n",
+ " 1997 \n",
+ " In 1839, the revolt of Mende captives aboard a... \n",
+ " \n",
+ " \n",
+ " 8 \n",
+ " Anaconda \n",
+ " 1997 \n",
+ " A \"National Geographic\" film crew is taken hos... \n",
+ " \n",
+ " \n",
+ " 9 \n",
+ " A Cool, Dry Place \n",
+ " 1998 \n",
+ " Russell, single father balances his work as a ... \n",
+ " \n",
+ " \n",
+ " 10 \n",
+ " América Proibida \n",
+ " 1998 \n",
+ " A former neo-nazi skinhead tries to prevent hi... \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " title year \\\n",
+ "1 Pesadelo em Elm Street 1984 \n",
+ "2 Despertares 1990 \n",
+ "3 Liga de Mulheres 1992 \n",
+ "4 Um Bairro em Nova Iorque 1993 \n",
+ "5 Anjos em Campo 1994 \n",
+ "6 Tempo de Matar 1996 \n",
+ "7 Amistad 1997 \n",
+ "8 Anaconda 1997 \n",
+ "9 A Cool, Dry Place 1998 \n",
+ "10 América Proibida 1998 \n",
+ "\n",
+ " summary \n",
+ "1 Teenager Nancy Thompson must uncover the dark ... \n",
+ "2 The victims of an encephalitis epidemic many y... \n",
+ "3 Two sisters join the first female professional... \n",
+ "4 A father becomes worried when a local gangster... \n",
+ "5 When a boy prays for a chance to have a family... \n",
+ "6 In Clanton, Mississippi, a fearless young lawy... \n",
+ "7 In 1839, the revolt of Mende captives aboard a... \n",
+ "8 A \"National Geographic\" film crew is taken hos... \n",
+ "9 Russell, single father balances his work as a ... \n",
+ "10 A former neo-nazi skinhead tries to prevent hi... "
+ ]
+ },
+ "execution_count": 671,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
"source": [
- "# your code here"
+ "# your code here\n",
+ "response = requests.get(url)\n",
+ "soup = BeautifulSoup(response.content)\n",
+ "movies = soup.find_all(\"div\", attrs = {\"class\": \"lister-item-content\"})[0:10]\n",
+ "\n",
+ "random_dict = {}\n",
+ "i = 0\n",
+ "\n",
+ "for movie in movies:\n",
+ " \n",
+ " title = movie.h3.a.get_text()\n",
+ " year = movie.h3.find('span', class_='lister-item-year').get_text().strip('()')\n",
+ " summary = movie.find_all('p')[1].get_text().strip()\n",
+ " \n",
+ " i+=1\n",
+ " random_dict[i] = {\"title\": title, \"year\": year, \"summary\" : summary}\n",
+ " \n",
+ "df = pd.DataFrame(random_dict).T\n",
+ "df\n",
+ "\n"
]
},
{
@@ -395,7 +5194,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "Python 3",
+ "display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
@@ -409,7 +5208,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.7.7"
+ "version": "3.9.13"
}
},
"nbformat": 4,