WestSalamander9041 | 1 points | Sep 07 2021 20:01:18

摸鱼时间整了一个翻墙穷蛆检测器,左逼右逼都进来康康到底谁是东8区土左/右

[removed]

[-] WestSalamander9041 | 51 points | Sep 07 2021 20:03:33

``` import requests import re import collections import matplotlib.pyplot as plt import sys

session = requests.Session()

username = sys.argv[1]

uesrMainPageUrl = f"https://old.reddit.com/user/{username}"

next_page_url_ptn = r'next-button"&rt;<a href="(.+?)" rel' datetime_ptn = r'datetime="(.+?)" class="live-timestamp"' comment_ptn = r'md-container " &rt;<div class="md"&rt;(.+?)</div&rt;' # dotall flag

comments_list = [] cm_datetime_list = []

headers = { "user-agent": ( "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)" " Chrome/93.0.4577.63 Safari/537.36" ) }

def datetime_format(datetime_str): return datetime_str.replace("T", " ").replace("+", " ")

def comment_format(comment_str): return "".join( comment_str.replace("<p&rt;", "").replace("</p&rt;", "").split("\n") )

next_page_url = uesrMainPageUrl

session.cookies["over18"] = "1"

page_num = 1

while True: current_page_url = next_page_url current_page_text = session.get(current_page_url, headers=headers).text cm_datetime = re.findall(datetime_ptn, current_page_text) comments = re.findall(comment_ptn, current_page_text, re.DOTALL) fmt_cm_datetime = [datetime_format(d) for d in cm_datetime] fmt_comments = [comment_format(c) for c in comments]

comments_list.extend(fmt_comments)
cm_datetime_list.extend(fmt_cm_datetime)

if next_page_url_find := re.findall(next_page_url_ptn, current_page_text):
    next_page_url = next_page_url_find[0]
    page_num += 1

else:
    break

print(f"comments count: {len(comments_list)}, page count: {page_num}")

die_mom_left_vigina_cm_list = [ m for m in comments_list if ("死妈" in m or "左逼" in m) ]

print(f"复读指数: {len(die_mom_left_vigina_cm_list)}")

hour_utc_lists = [t.split(" ")[1][:2] for t in cm_datetime_list]

def hour_utc_to_e8(str_h): east8_h = str((int(str_h) + 8) % 24) if len(east8_h) == 1: east8_h = "0" + east8_h return east8_h

hour_east8_lists = [hour_utc_to_e8(h) for h in hour_utc_lists]

w = collections.Counter(hour_east8_lists) d = dict(w) for i in range(24): s = str(i) if len(s) == 1: s = "0" + s if not d.get(s): d[s] = 0

s_d = sorted(d.items()) plt.plot(zip(s_d)) plt.show()

```

代码在这里,有兴趣的同学还可以继续统计

[-] T_F_Catus | 1 points | Sep 07 2021 21:11:17

&rt; die_mom_left_vigina

今日首绷

[-] kumaba | 1 points | Sep 08 2021 00:50:49

经典左阴

[-] ruisnow | 1 points | Sep 07 2021 21:32:58

我被人家追着喷左逼,竟然没有我。差评。

[-] ianhohkccym | 1 points | Sep 07 2021 23:03:02

Reddit原來有api可以調用,還是第一次知道

[-] SurfaceOfTheSun01 | 1 points | Sep 07 2021 23:16:22

这个帖子里的代码是模拟浏览器发的http request,受限制少一些但是要手动爬网页

关于api的使用可以参考这位

[-] FatFingerHelperBot | 1 points | Sep 07 2021 23:16:34

It seems that your comment contains 1 or more links that are hard to tap for mobile users. I will extend those so they're easier for our sausage fingers to click!

Here is link number 1 - Previous text "这位"


^Please ^PM ^\/u\/eganwall ^with ^issues ^or ^feedback! ^| ^Code ^| ^Delete

[-] ianhohkccym | 1 points | Sep 07 2021 23:26:28

謝謝,這就寫個機器人出來玩玩

[-] fengfubuffalo | 1 points | Sep 08 2021 04:17:53

穷蛆滚

[-] Aidenfred | 1 points | Sep 22 2021 23:51:00

这个怎么用啊,放浏览器里面运行吗

我代码白痴

[-] Aidenfred | 1 points | Sep 23 2021 06:46:02

VM258:1 Uncaught SyntaxError: Cannot use import statement outside a module

咋玩啊

[-] T_F_Catus | 1 points | Sep 07 2021 21:13:07

242这个作息时间真的牛逼,不睡觉的?

[-] lynxtrainer | 1 points | Sep 07 2021 21:28:57

242很显然可以自己写个机器人发帖

[-] SurfaceOfTheSun01 | 1 points | Sep 07 2021 21:48:29

敌进我退,敌疲我打是吧 😅

这下融入大洋彼岸战友们的作息时间了

[-] lynxtrainer | 1 points | Sep 07 2021 21:50:12

怎么全都是腊老嗨,这下左逼了

[-] somethin4nothing | 1 points | Sep 07 2021 23:31:13

我不是本sub第一左逼吗

[-] Leader_Kim_Il-sung | 1 points | Sep 08 2021 03:26:56

你能左的过我吗?:)

[-] PlanBoth | 1 points | Sep 07 2021 21:24:10

晶哥你摇了尾巴😭

[-] Hsiamoo | 1 points | Sep 07 2021 21:26:45

什么晶哥小插件

[-] xijinping_siquanjia | 1 points | Sep 07 2021 21:29:16

检测我试试?

[-] lynxtrainer | 1 points | Sep 07 2021 21:30:53

妈妈的我的纵坐标是不是太长了,感觉有点浪费生命了

[-] tuzhizhina | 1 points | Sep 08 2021 00:22:10

高强度冲浪了属于是

[-] MontblancAlps | 1 points | Sep 07 2021 21:31:52

来试试我看下

[-] PlanBoth | 1 points | Sep 07 2021 21:32:26

好想拥有fangshiminn的作息😭

[-] lynxtrainer | 1 points | Sep 07 2021 21:40:21

很明显监狱作息,9点到12点属于挣工分时间

[-] xijinping_siquanjia | 1 points | Sep 07 2021 21:44:57

狱友标准作息

[-] T_F_Catus | 1 points | Sep 07 2021 21:52:36

这个显然和开各种左逼高仿号的人是同一个,不一定每天都要待在这个号上发帖

[-] ImpossibleTech | 1 points | Sep 07 2021 21:56:15

这比怕不是晶哥帆船,八点上班六点下班,什么职业工作者

[-] lynxtrainer | 1 points | Sep 07 2021 22:09:02

下午还摸个鱼是吧 哈哈

[-] 43212321423 | 1 points | Sep 07 2021 21:34:22

很典型了,嘴上整天左逼左逼,然后98%的时间在骂民主党甚至现在连fox也左逼,然后2%的时间不痛不痒的骂骂国内。连俄爹都没怎么骂过,大概率国内的翻墙粉蛆反串

[-] PlanBoth | 1 points | Sep 07 2021 21:40:00

合理推测,中嘞!

[-] Dengshopping | 1 points | Sep 08 2021 00:11:31

我马上化身俄爹屠杀中华田园川粉

[-] Maple560 | 1 points | Sep 08 2021 00:13:20

我说有几个怎么那么烦天天挑事,这下又上当了

[-] matterrun | 1 points | Sep 08 2021 01:37:35

这下支了

[-] AlaFidelis | 1 points | Sep 08 2021 03:17:08

什么鬼逻辑?照你这么说98%时间都在骂中共,从来不舍得骂西方左逼的也是西方左逼派来反串的?

[-] PlanBoth | 1 points | Sep 08 2021 03:30:36

逻辑没毛病啊,我就是西方左逼,莫非恁就是翻墙粉…🤯

[-] Yasu-Tomohiro | 1 points | Sep 07 2021 22:01:30

技术力支持,这才稍微有点overwall应有的玩网感,互喷-扣帽子太费拉了

[-] [deleted] | 1 points | Sep 07 2021 22:16:13

[deleted]

[-] SiriusGuyyy | 1 points | Sep 07 2021 22:18:38

你也是个左逼吧!死妈左逼又在这里挂大字报了!

[-] PlanBoth | 1 points | Sep 07 2021 22:26:33

意大利炮厚葬!

[-] heyjojori | 1 points | Sep 07 2021 22:30:43

符合预期。 16年知乎上一堆为特朗普当选叫好的人 可能现在都翻到这sub里来了

[-] Sager_Forever | 1 points | Sep 07 2021 22:51:44

肚子给爷笑痛了,这下是蝙蝠还是鼠一目了然。

不过L皇居然被你归为左逼,L皇铁右逼啊

[-] lynxtrainer | 1 points | Sep 07 2021 22:56:16

我早就是左逼了,我都被入了左籍了

[-] tuzhizhina | 1 points | Sep 08 2021 00:23:02

什么右逼的左边是左逼

[-] Dengshopping | 1 points | Sep 08 2021 00:08:13

我又没上榜,我天天被中华田园川粉杀妈😭😭😭我就猜这帮byd是粉红五毛来卧底搞破坏了。

[-] dkmfTheMaster | 1 points | Sep 08 2021 02:22:55

不跟魔怔比争不就没事了,我看到魔怔比我都懒得回他们,给自己找事。

[-] Dengshopping | 1 points | Sep 08 2021 02:28:27

😭😭😭

[-] Palage420 | 1 points | Sep 08 2021 02:39:48

平平,我的平平😭😭

[-] Jat_star42 | 1 points | Sep 08 2021 00:25:35

左左右右上上下下

[-] kumaba | 1 points | Sep 08 2021 00:40:07

这哈睡的香了

[-] Kalftazhi | 1 points | Sep 08 2021 01:22:15

哦,自己觉得蝙蝠作息高人一等是吧,左逼就是这么平等的哈。那我也可以说,左逼们都是一帮白天睡觉不做正事,夜里撸完管就指点江山的东八区废物。当然也可能跟D蛆一样,窝在法拉盛地下室自认为伟大。

[-] QiongQuChatBot | 1 points | Sep 08 2021 01:22:49

Kalftazhi高雅创作:左逼亲妈下体烂成150榴炮口

[-] SiriusGuyyy | 1 points | Sep 08 2021 02:04:41

翻墙穷蛆滚

[-] Kalftazhi | 1 points | Sep 08 2021 02:07:44

左逼你跳出来了,看来家里其他人的丧事办完了吧,节哀顺变啊

[-] SiriusGuyyy | 1 points | Sep 08 2021 02:08:24

酸蛆滚

[-] Kalftazhi | 1 points | Sep 08 2021 02:10:33

原来是R蛆的分身之一,失敬失敬,你一股子R蛆下体的味道,想来是R蛆鸡巴的分身吧

[-] QiongQuChatBot | 1 points | Sep 08 2021 02:11:09

Kalftazhi高雅创作:左逼狗学人说话可是要烂鸡巴的

[-] SiriusGuyyy | 1 points | Sep 08 2021 02:11:16

引流蛆滚

[-] Kalftazhi | 1 points | Sep 08 2021 02:12:59

什么?你说你想拿你爸妈的骨灰拌饭,那你得跟火葬工说了,我做不了主

[-] QiongQuChatBot | 1 points | Sep 08 2021 02:13:10

Kalftazhi高雅创作:左逼必须被消灭,无论是物理层面还是理念层面,否则后患无穷

[-] QiongQuChatBot | 1 points | Sep 08 2021 02:09:08

Kalftazhi高雅创作:杀光左逼!杀光左逼!杀光左逼!

[-] WholeSea6100 | 1 points | Sep 08 2021 02:11:53

杀光右逼,杀光右逼!美国白皮的左右和你个支那人有几把关系,支那猪真就只会关注你美国爹呗。

[-] Kalftazhi | 1 points | Sep 08 2021 02:16:09

美国白皮和我的关系就像你黑叔叔和我以及你现在喊爸爸那人的关系,我们都通过同一种形式感受过你妈妈的温暖。

[-] QiongQuChatBot | 1 points | Sep 08 2021 02:17:12

Kalftazhi高雅创作:这算啥,这年头纯黑人搞种族仇杀,都有人说是白人至上主义

[-] WholeSea6100 | 1 points | Sep 08 2021 02:19:42

可惜美国白皮大部分是左逼哦 特朗普都被推特脸书封了,好可怜哦

[-] Kalftazhi | 1 points | Sep 08 2021 02:22:20

是啊,这也是我一直痛心疾首的原因,是左逼就会滥交,常滥交就会染病然后传染别人比如你妈妈,感受你妈妈的温暖之前我没有考虑到这个风险。

[-] QiongQuChatBot | 1 points | Sep 08 2021 02:23:15

Kalftazhi高雅创作:左逼喜欢性侵幼女,塔利班:我操这个我熟!

[-] WholeSea6100 | 1 points | Sep 08 2021 04:31:37

还有这种好事!那我马上变左逼,求快来个好妹妹跟我滥交一下

[-] Kalftazhi | 1 points | Sep 08 2021 04:33:18

你可以手术加长下你的阴茎,然后再自己肏自己的屁眼

[-] QiongQuChatBot | 1 points | Sep 08 2021 04:33:29

Kalftazhi高雅创作:右逼:“以上全部”。

[-] WholeSea6100 | 1 points | Sep 08 2021 04:35:53

说好的滥交呢,原来左逼妹妹很保守啊。不过跪舔共产党的你妈也是左逼吧?和我滥交一下我不介意啦

[-] Kalftazhi | 1 points | Sep 08 2021 04:37:41

你看,又是一个大麻上头的王八左逼,跪着给你社区主任舔鸡巴是你妈。这大麻果然害人不浅。

[-] QiongQuChatBot | 1 points | Sep 08 2021 04:39:32

Kalftazhi高雅创作:右逼喜欢性侵幼女,塔利班:我操这个我熟!

[-] QiongQuChatBot | 1 points | Sep 08 2021 07:28:21

Kalftazhi高雅创作:右逼亲妈溃烂而亡

[-] WholeSea6100 | 1 points | Sep 08 2021 02:20:35

我巴不得川普拜登一起死呢

[-] Kalftazhi | 1 points | Sep 08 2021 02:24:30

我无所谓啊,川普年纪这么大了,生老病死是自然之理;逼登老年痴呆还不忘祸害幼女,属实该死。但不管怎么说,这两位走的时候只要能带上左逼们一起死绝,我一天三次给他们磕头烧纸。

[-] QiongQuChatBot | 1 points | Sep 08 2021 02:25:16

Kalftazhi高雅创作:滚你妈的,老子没义务跟你个左逼浪费时间

[-] WholeSea6100 | 1 points | Sep 08 2021 04:30:18

支持左逼右逼一起死然后带上你

[-] Kalftazhi | 1 points | Sep 08 2021 04:31:23

左逼还有你恐怕都没那个本事,你们所有的进步都体现在操屁眼上了

[-] WholeSea6100 | 1 points | Sep 08 2021 04:32:54

然而就是能压着右逼乱草,就是能封你特爹的号,只能说明右逼更垃圾

[-] Kalftazhi | 1 points | Sep 08 2021 04:35:07

然而大麻的致幻效果过后,左逼发现自己只是在被拜登操屁眼。

[-] QiongQuChatBot | 1 points | Sep 08 2021 04:35:30

Kalftazhi高雅创作:多操操我妈大逼

[-] QiongQuChatBot | 1 points | Sep 08 2021 04:33:29

Kalftazhi高雅创作:支共我操我妈!

[-] nimadabirenrenc | 1 points | Sep 08 2021 04:00:29

死妈的狱友别来bb了,你看有人把你当个人吗?

[-] Kalftazhi | 1 points | Sep 08 2021 04:07:42

我狱友你妈个逼,你们这帮左逼有资格把人不当人吗?

[-] QiongQuChatBot | 1 points | Sep 08 2021 04:09:18

Kalftazhi高雅创作:记得是个经济学叫兽?那就不奇怪了,经济学但凡沾点凯恩斯的都是右逼死妈贵物

[-] Dengshopping | 1 points | Sep 08 2021 05:23:58

蜘蛛竟然不优先关注俄爹!不孝!

[-] hhffvgu | 1 points | Sep 08 2021 08:28:13

穷蛆滚

[-] ru1snow | 1 points | Sep 08 2021 01:28:19

死妈左逼又赢了,赢两次

[-] Kalftazhi | 1 points | Sep 08 2021 01:30:57

死全家的左逼什么时候不赢呢?小粉红都赢不了的时候,左逼都在赢。

[-] QiongQuChatBot | 1 points | Sep 08 2021 01:32:53

Kalftazhi高雅创作:左逼的爷爷住进纽约州老人院

[-] ru1snow | 1 points | Sep 08 2021 01:34:46

死妈左逼对言论自由不适应,我观察了几个左逼发现他们都很无奈,搞不了一言堂的情况下舔拜登都不敢公开舔了。

[-] RomancingSugar | 1 points | Sep 08 2021 02:40:26

这味儿一看就知道是谁,除了换号还有点别的本事没有?

[-] ekiniechisuru | 1 points | Sep 08 2021 01:44:13

我之前也做了几个数据分析系列但是用的是pushshiftio https://pypi.org/project/pushshift.py/

里面的数据除了几个月没有外每个中文sub数据都蛮整齐的

[-] matterrun | 1 points | Sep 08 2021 01:49:52

右逼为翻墙穷蛆鉴定完毕,高华人均左逼,看来献忠需要在美国也开设分部,一个也别想跑

[-] Opposite-Message-997 | 1 points | Sep 08 2021 01:54:13

这下晶哥笑习了

[-] Conscious-Boss | 1 points | Sep 08 2021 03:59:22

白天不工作还是不上学?哪怕键政废宅谁不是日夜颠倒,中午下午跑网上扯淡?你这个结论可以直接反过来了。

[-] WestSalamander9041 | 1 points | Sep 08 2021 05:12:39

怕你不知道提一嘴,本sub左逼人均美帝程序员,疫情期间 work from home 每天工作时间不足3小时,悠闲程度不是国内996翻墙穷蛆能比的

[-] Dengshopping | 1 points | Sep 08 2021 05:26:46

确实 还是当左逼幸福。我都快两年没去办公室了

[-] Dengshopping | 1 points | Sep 08 2021 05:28:58

u/lostinmodu 乐乐爹!我们要还你清白😭😭😭本sub主流是好的,只有一小撮翻墙穷蛆骂你是左逼😭

[-] Random-32927 | 1 points | Sep 08 2021 08:03:25

数字记者呢,可是位重量级

[-] PainKatana | 1 points | Sep 08 2021 10:05:08

什麼?有右派?這怎麼可能?!中國大陸普通人本質上沒有任何政治意識,對任何政策的決議都沒有話語權,加上70年的共產洗腦,表現出來基本都是極左。如果你的鄰居講普通話你會給他擺臭臉嗎?在公司裡羞於用自己的母語方言說話嗎?外地人跑來搶你們的工作崗位你們會集結兒時的玩伴找他們麻煩嗎?噢,你兒時的玩伴說不定也是外地人。大多數人都是可以一聲不吭就離開自己的村或鎮子打工的人,這種人也能算右派嗎(戶籍制度下有的人會不得不回去)?連小區裡的居委會都TM是入了共產黨的,小到連社區都沒有自治能力。

右,多為傳統保守,主張本地勢力掌握當地話語權,原先的規矩願意縫縫補補,但絕不實行改革,改革這種字眼完全是左派的專屬,能推動改革的也是右派裡出過國見識異國文化的人,他們和有出息的外地人合作才形成了最初的左派。只要是右派就不會喜歡和統一沾邊的字眼,哪怕是兩個小鎮之間,這就是為什麼有的國家是聯邦制,抵觸情緒強的,就直接變兩個國家了。所謂的中華民族,是TM包含了56個民族左到爆炸的統戰口號,中共更是純外來政權,政治傳統完完全全來自蘇共。有的人肯定要拿美國這個多民族移民國家舉例反駁,就這麼說吧,二戰時期,日裔美國人全都進了集中營。不過要是拿黑人種族問題來反駁,我認為黑人早已融入美國社區了,只是一些人看不慣,特別是地位超低但又沒人在乎的支那人。

中國這地方,沒有右派,要是有,劉仲敬口裡的諸夏都成真了。即使移民到其他國家,不想當大家眼中固有印象的xx人,那得流上幾十年的血來證明,要徹底融入進去,那得流幾百年血了,只交稅的話,那只能算是居民,和平年代不會有什麼事還能受到庇護,所以各位有是移民外國的人,記得讓後代去參軍,不要當費拉了,當然,是從事顛覆和外宣的話祝你早日被驅逐出境,回到與你匹配的“祖國”。

[-] xidada2021 | 1 points | Sep 08 2021 10:06:55

卧槽,什么名侦探柯南👏👏👏

[-] 99bane | 1 points | Sep 08 2021 16:14:47

建议支川大胆承认自己是支那人

[-] KamijoMikoto | 1 points | Oct 04 2021 15:37:50

不用这么麻烦 redditmetis可以直接看,还能比照两个id的作息/风格,看是不是小号。