From 263705733f4adc111ba90fcc2a28d6dab20ce683 Mon Sep 17 00:00:00 2001 From: woyeso <80009499+woyeso@users.noreply.github.com> Date: Wed, 1 Dec 2021 21:00:04 +0300 Subject: [PATCH 1/3] Update 1-Data-Cleaning.ipynb --- 1-Data-Cleaning.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-Data-Cleaning.ipynb b/1-Data-Cleaning.ipynb index 7bcb2cf..0d025d5 100644 --- a/1-Data-Cleaning.ipynb +++ b/1-Data-Cleaning.ipynb @@ -80,7 +80,7 @@ " '''Returns transcript data specifically from scrapsfromtheloft.com.'''\n", " page = requests.get(url).text\n", " soup = BeautifulSoup(page, \"lxml\")\n", - " text = [p.text for p in soup.find(class_=\"post-content\").find_all('p')]\n", + " text = [p.text for p in soup.find(class_=\"ast-container\").find_all('p')]\n", " print(url)\n", " return text\n", "\n", From 90fcead587254fc0de1250c1f0477c89242effdf Mon Sep 17 00:00:00 2001 From: Sam Montoia Date: Mon, 11 Apr 2022 12:44:27 -0600 Subject: [PATCH 2/3] Update 1-Data-Cleaning.ipynb https://scrapsfromtheloft.com/comedy/bo-burnham-what-transcript/ https://scrapsfromtheloft.com/comedy/hasan-minhaj-homecoming-king-transcript/ --Added these changes for urls for bo burnham and hasan-minhaj. --- 1-Data-Cleaning.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-Data-Cleaning.ipynb b/1-Data-Cleaning.ipynb index 7bcb2cf..00c25e2 100644 --- a/1-Data-Cleaning.ipynb +++ b/1-Data-Cleaning.ipynb @@ -88,11 +88,11 @@ "urls = ['http://scrapsfromtheloft.com/2017/05/06/louis-ck-oh-my-god-full-transcript/',\n", " 'http://scrapsfromtheloft.com/2017/04/11/dave-chappelle-age-spin-2017-full-transcript/',\n", " 'http://scrapsfromtheloft.com/2018/03/15/ricky-gervais-humanity-transcript/',\n", - " 'http://scrapsfromtheloft.com/2017/08/07/bo-burnham-2013-full-transcript/',\n", + " 'https://scrapsfromtheloft.com/comedy/bo-burnham-what-transcript/',\n", " 'http://scrapsfromtheloft.com/2017/05/24/bill-burr-im-sorry-feel-way-2014-full-transcript/',\n", " 'http://scrapsfromtheloft.com/2017/04/21/jim-jefferies-bare-2014-full-transcript/',\n", " 'http://scrapsfromtheloft.com/2017/08/02/john-mulaney-comeback-kid-2015-full-transcript/',\n", - " 'http://scrapsfromtheloft.com/2017/10/21/hasan-minhaj-homecoming-king-2017-full-transcript/',\n", + " 'https://scrapsfromtheloft.com/comedy/hasan-minhaj-homecoming-king-transcript/',\n", " 'http://scrapsfromtheloft.com/2017/09/19/ali-wong-baby-cobra-2016-full-transcript/',\n", " 'http://scrapsfromtheloft.com/2017/08/03/anthony-jeselnik-thoughts-prayers-2015-full-transcript/',\n", " 'http://scrapsfromtheloft.com/2018/03/03/mike-birbiglia-my-girlfriends-boyfriend-2013-full-transcript/',\n", From b03c231272df16df42ec8b0bf9c304022b73cc9d Mon Sep 17 00:00:00 2001 From: adashofdata Date: Tue, 30 Aug 2022 15:08:44 -0500 Subject: [PATCH 3/3] resolved issue #3 and updated ylim code to bottom and top instead of ymin and ymax --- 3-Sentiment-Analysis.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3-Sentiment-Analysis.ipynb b/3-Sentiment-Analysis.ipynb index 31e9d67..9998c1a 100644 --- a/3-Sentiment-Analysis.ipynb +++ b/3-Sentiment-Analysis.ipynb @@ -227,7 +227,7 @@ " plt.plot(polarity_transcript[index])\n", " plt.plot(np.arange(0,10), np.zeros(10))\n", " plt.title(data['full_name'][index])\n", - " plt.ylim(ymin=-.2, ymax=.3)\n", + " plt.ylim(bottom=-.2, top=.3)\n", " \n", "plt.show()" ] @@ -285,7 +285,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.2" + "version": "3.8.5" }, "toc": { "nav_menu": {},