-
-
Save anonymous/877edc7e547466ce2ad2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ perl -Ilib -Mexperimental=signatures -Mojo -E 'say r g("reddit.com")->dom->find("[class]")->attr("class")->reduce(sub ($a, $b) { $a->{$b}++; $a }, {})' | |
{ | |
" thing id-t3_2chj9m linkflair linkflair-stream odd link " => 1, | |
" thing id-t3_2chpje even link self" => 1, | |
" thing id-t3_2chpln linkflair linkflair-ntoflair even link " => 1, | |
" thing id-t3_2chu38 linkflair linkflair-summary odd link " => 1, | |
" thing id-t3_2chu5c odd link " => 1, | |
" thing id-t3_2chwvo linkflair linkflair-municipal even link self" => 1, | |
" thing id-t3_2chz1p linkflair linkflair-2 even link self" => 1, | |
" thing id-t3_2chzgw even link self" => 1, | |
" thing id-t3_2ci0jr odd link self" => 1, | |
" thing id-t3_2ci355 even link " => 1, | |
" thing id-t3_2ci4x9 odd link self" => 1, | |
" thing id-t3_2ci5j9 even link " => 1, | |
" thing id-t3_2ci904 linkflair linkflair-news odd link " => 1, | |
" thing id-t3_2cia1c linkflair linkflair-hide linkflair-img13 linkflair-other odd link " => 1, | |
" thing id-t3_2cia6h linkflair linkflair-med even link " => 1, | |
" thing id-t3_2cicj7 odd link " => 1, | |
" thing id-t3_2cie8w linkflair odd link " => 1, | |
" thing id-t3_2cihzg linkflair linkflair-palestisrael odd link " => 1, | |
" thing id-t3_2ciihh odd link " => 1, | |
" thing id-t3_2cij1u linkflair linkflair-psb odd link " => 1, | |
" thing id-t3_2cik56 even link " => 1, | |
" thing id-t3_2cinha odd link " => 1, | |
" thing id-t3_2cip8f even link " => 1, | |
" thing id-t3_2cir7t even link " => 1, | |
" thing id-t3_2civ5r even link " => 1, | |
" thing id-t3_2cja8g even link self" => 1, | |
" thing id-t3_2cjbo6 linkflair linkflair-flairWP odd link self" => 1, | |
" thing id-t3_2cjcop even link " => 1, | |
" thing id-t3_2cjcq6 odd link self" => 1, | |
" thing id-t3_2cjcrl even link self" => 1, | |
" thing id-t3_2cjcrp even link " => 1, | |
" thing id-t3_2cjcru odd link " => 1, | |
" thing id-t3_2cjcs4 even link " => 1, | |
" thing id-t3_2cjcs6 odd link self" => 1, | |
" thing id-t3_2cjcsg linkflair linkflair-stream odd link " => 1, | |
"arrow down login-required" => 35, | |
"arrow next" => 1, | |
"arrow prev" => 1, | |
"arrow up login-required" => 35, | |
"aside" => 1, | |
"author may-blank id-t2_4887t" => 1, | |
"author may-blank id-t2_4fk0" => 1, | |
"author may-blank id-t2_4xcm6" => 1, | |
"author may-blank id-t2_5gh0p" => 1, | |
"author may-blank id-t2_5rj7l" => 1, | |
"author may-blank id-t2_6oa7g" => 1, | |
"author may-blank id-t2_7616j" => 1, | |
"author may-blank id-t2_79u15" => 1, | |
"author may-blank id-t2_7idam" => 1, | |
"author may-blank id-t2_7shtv" => 1, | |
"author may-blank id-t2_86zgx" => 1, | |
"author may-blank id-t2_93bl7" => 1, | |
"author may-blank id-t2_9cmw8" => 1, | |
"author may-blank id-t2_a6v1m" => 1, | |
"author may-blank id-t2_af3am" => 1, | |
"author may-blank id-t2_b7y1y" => 1, | |
"author may-blank id-t2_br0qy" => 1, | |
"author may-blank id-t2_c8dq9" => 1, | |
"author may-blank id-t2_ccj0j" => 1, | |
"author may-blank id-t2_cgnyx" => 1, | |
"author may-blank id-t2_cteu3" => 1, | |
"author may-blank id-t2_d1r45" => 1, | |
"author may-blank id-t2_dhfff" => 1, | |
"author may-blank id-t2_dlrex" => 1, | |
"author may-blank id-t2_e498s" => 1, | |
"author may-blank id-t2_f20pn" => 1, | |
"author may-blank id-t2_ftqc5" => 1, | |
"author may-blank id-t2_g3mbq" => 1, | |
"author may-blank id-t2_gdnep" => 1, | |
"author may-blank id-t2_ggvka" => 1, | |
"author may-blank id-t2_gm6it" => 1, | |
"author may-blank id-t2_h5v0m" => 1, | |
"author may-blank id-t2_hlmdu" => 1, | |
"author may-blank id-t2_homh0" => 1, | |
"author may-blank id-t2_hpdxb" => 1, | |
"bar" => 2, | |
"bottom-option choice" => 1, | |
"bottommenu" => 2, | |
"btn" => 2, | |
"bubble" => 1, | |
"button" => 2, | |
"button-row" => 1, | |
"buy-gold" => 1, | |
"buygold choice" => 1, | |
"capimage" => 1, | |
"captcha cap-text" => 1, | |
"caption" => 1, | |
"child" => 35, | |
"choice" => 134, | |
"clear" => 2, | |
"clearleft" => 70, | |
"col" => 4, | |
"comments empty may-blank" => 5, | |
"comments may-blank" => 31, | |
"content" => 2, | |
"content preftable" => 1, | |
"cover" => 2, | |
"cover-msg" => 1, | |
"debuginfo" => 1, | |
"default-header" => 1, | |
"dismiss" => 1, | |
"domain" => 35, | |
"drop-choices srdrop" => 1, | |
"dropdown srdrop" => 1, | |
"edited-timestamp" => 3, | |
"entry unvoted" => 35, | |
"error" => 35, | |
"error BAD_CAPTCHA field-captcha" => 1, | |
"error BAD_EMAILS field-email" => 1, | |
"error BAD_PASSWORD field-passwd" => 1, | |
"error BAD_PASSWORD_MATCH field-passwd2" => 1, | |
"error BAD_USERNAME field-user" => 1, | |
"error RATELIMIT field-ratelimit" => 1, | |
"error RATELIMIT field-vdelay" => 1, | |
"error USERNAME_TAKEN field-user" => 1, | |
"error USERNAME_TAKEN_DEL field-user" => 1, | |
"error WRONG_PASSWORD field-passwd" => 1, | |
"error-caption" => 1, | |
"expando" => 35, | |
"expando-button collapsed selftext" => 9, | |
"expando-button collapsed video" => 3, | |
"first" => 35, | |
"flat-list buttons" => 35, | |
"flat-list hover" => 1, | |
"flat-list sr-bar hover" => 2, | |
"flat-vert hover" => 4, | |
"flat-vert title" => 4, | |
"footer rounded" => 1, | |
"footer-parent" => 1, | |
"give-gold" => 1, | |
"gold-branding" => 1, | |
"gold-bubble hover-bubble help-bubble anchor-top-centered" => 1, | |
"goldvertisement" => 1, | |
"help help-hoverable" => 1, | |
"help-section help-interestbar" => 1, | |
"help-section help-organic" => 1, | |
"help-section help-promoted" => 1, | |
"hidecover" => 2, | |
"history" => 1, | |
"hover-bubble help-bubble anchor-top" => 1, | |
"icon" => 1, | |
"infobar" => 1, | |
"infobar welcome" => 1, | |
"inner" => 1, | |
"lang-popup cover-overlay" => 1, | |
"linkflairlabel" => 11, | |
"listing-page hot-page front-page" => 1, | |
"little gray hover" => 1, | |
"live-timestamp" => 35, | |
"locationbar" => 1, | |
"login-form login-form-side" => 1, | |
"login-form-section divide register" => 1, | |
"login-form-section login" => 1, | |
"login-popup cover-overlay" => 1, | |
"login-required" => 3, | |
"md" => 1, | |
"md wiki" => 1, | |
"midcol unvoted" => 35, | |
"midcol-spacer" => 1, | |
"morelink" => 2, | |
"name" => 1, | |
"name-entry" => 2, | |
"nav-buttons" => 1, | |
"next-suggestions" => 1, | |
"nextprev" => 2, | |
"note" => 1, | |
"notice-available" => 1, | |
"notice-taken" => 1, | |
"nub" => 2, | |
"option " => 35, | |
"option active login-required" => 35, | |
"options" => 1, | |
"orangered" => 1, | |
"organic-listing loading show-placeholder" => 1, | |
"parent" => 35, | |
"popup" => 2, | |
"pref-lang choice" => 1, | |
"prefright" => 1, | |
"pretty-form short-text" => 1, | |
"progress" => 2, | |
"query" => 1, | |
"query-box" => 1, | |
"random" => 1, | |
"random choice" => 1, | |
"rank" => 35, | |
"rank-spacer" => 1, | |
"recover-password" => 2, | |
"registration-info" => 1, | |
"remember" => 2, | |
"results" => 1, | |
"score dislikes" => 35, | |
"score likes" => 35, | |
"score unvoted" => 35, | |
"selected" => 2, | |
"selected title" => 1, | |
"separator" => 71, | |
"share" => 35, | |
"share-button toggle" => 35, | |
"side" => 1, | |
"sidebox submit submit-link" => 1, | |
"sidebox submit submit-text" => 1, | |
"sitetable linklisting" => 1, | |
"spacer" => 10, | |
"sponsorshipbox" => 1, | |
"sr-interest-bar" => 1, | |
"sr-list" => 1, | |
"status" => 3, | |
"submit" => 3, | |
"subreddit hover may-blank" => 35, | |
"subscribe" => 1, | |
"tabmenu " => 1, | |
"tagline" => 37, | |
"thing interestbar" => 1, | |
"throbber" => 6, | |
"thumbnail may-blank " => 17, | |
"thumbnail self may-blank " => 1, | |
"title" => 35, | |
"title may-blank " => 35, | |
"trending-subreddits" => 1, | |
"trending-subreddits-content" => 1, | |
"use-global" => 1, | |
"user" => 1, | |
"user-form login-form" => 1, | |
"user-form register-form" => 1, | |
"userattrs" => 35, | |
"width-clip" => 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment