diff --git a/1-Data-Cleaning.ipynb b/1-Data-Cleaning.ipynb index 7bcb2cf..2689063 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", @@ -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", 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": {},