Repository navigation
Expand file tree
/
Copy pathBuzzwords.html
More file actions
154 lines (134 loc) · 5.44 KB
/
Copy pathBuzzwords.html
File metadata and controls
154 lines (134 loc) · 5.44 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE HTML>
<!--
Dopetrope by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#b91d47">
<meta name="theme-color" content="#ffffff">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-138222769-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-138222769-1');
</script>
<title>Reddit Buzzwords Project</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body class="no-sidebar is-preload">
<div id="page-wrapper">
<!-- Header -->
<section id="header">
<!-- Logo -->
<h1><a href="index.html">Erika Lu</a></h1>
<!-- Nav -->
<nav id="nav">
<ul>
<li class="current"><a href="index.html">Programming</a></li>
<li><a href="arts.html">Art and Design</a></li>
</ul>
</nav>
</section>
<!-- Main -->
<section id="main">
<div class="container">
<!-- Content -->
<article class="box post">
<header>
<h2>Will Buzzwords Give You Online Popularity? </h2>
</header>
<a href="#" class="image project m"><img src="images/reddit.jpg" alt="" /></a>
<section>
<header>
<h3>Short Version:</h3>
</header>
<p> I scraped Reddit (a popular chat-forum site) to see if using certain words in your post’s title makes it more popular. </p>
<p>Turns out it does! </p>
<p data_temp_dwid="1">Technologies Involved: Python, PRAW (Python Reddit API Wrapper) </p>
</section>
<section>
<header>
<h3>Long Version:</h3>
</header>
<p> I used PRAW (a Reddit API wrapper) to pull information from Askreddit. First, I grabbed the “titles” of the first 5000 posts under each tab (New, Hot, Top). The title of an AskReddit post is the question that the poster asks the community. I processed the title strings by stripping the punctuation and splitting each word into a separate string. Then, I ran the string through a function that sorts the top 100 most frequent strings into a dictionary. The dictionary’s keys are the strings, and the values are how many times the string shows up in the first 5000 posts under a tab. <br>
</p>
<p> I compared the popular posts to the general posts in AskReddit by analyzing the posts under the Top/Hot tabs, then comparing them to those under the New tab. By disregarding the words common to both sections, I’m able to see the unique “buzzwords” in the popular posts. </p>
<p>Here are my findings: <br>
</p>
<img class= "image project l" src="images/bw1.jpg" alt=""/><img src="images/bw2.png" alt="" class="image project l"/> </section>
<img src="images/bw3.jpg" alt="" class="image project l"/>
<img class ="image project l" src="images/bw4.png" alt=""/>
<img src="images/bw5.png" alt="" class="image project l"/>
<br>
</article>
</div>
</section>
<!-- Footer -->
<div id="footer-wrapper">
<section id="footer" class="container">
<div class="row">
<div class="4u 12u(mobile)">
<section>
<header>
<h2>Background</h2>
</header>
<a class="image bg"><img src="images/BackgroundPic.JPG" alt="" /></a>
<br>
<p> I was born and raised in Northborough, Massachussets and am studying Computer Science at Franklin W. Olin College of Engineering. Now, I'm figuring out what will happen after that. </p>
</section>
</div>
<div class="4u 12u(mobile)">
<section>
<header>
<h2>Contact</h2>
</header>
<ul class="contact">
<li>
<h3>Linked-In</h3>
<p><a href="#">https://www.linkedin.com/in/erika-lu-b51173174/</a></p>
</li>
<li>
<h3>Mail</h3>
<p><a href="#">lu.erika58@gmail.com</a></p>
</li>
<!-- <li>
<h3>Phone</h3>
<p>(800) 000-0000</p>
</li> -->
</ul>
</section>
</div>
</div>
<div class="row">
<div class="12u">
<!-- Copyright -->
<div id="copyright">
<ul class="links">
<li>© Erika Lu. All rights reserved.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</div>
</div>
</div>
</section>
</div>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>