ami亞海🐧
2 years ago @Edit 2 years ago
@cheyi - #練習作 #php #噗浪抽獎 #抽獎 起因是這個: 最終結果是: 抽獎可用 但偷偷說...@cheyi - 成果是這個 把使用的工具跟流程記錄下來,不然以後我就忘了(毆) #php #Plurk...感謝魚儿大大直接寫程式了 只要貼網址就能用了!!!
--
#噗浪抽獎語法 #有chrome就能用
不知道各位大大辦抽獎的時候都怎麼抽名單,我之前還無聊到寫python抓資料XD,但後來想到用chrome就能一秒簡單抽了!!!
教學下收:
latest #18
ami亞海🐧
2 years ago
1.複製你要抽獎的那則噗的網址,chrome開新分頁,貼上
https://images.plurk.com/35mWGUT0LDdYm0xtBJSaBZ.png
ami亞海🐧
2 years ago
2.右上角打開chrome的開發人員工具視窗
https://images.plurk.com/7w70qLIC2JUqg28eb88GoN.png
ami亞海🐧
2 years ago @Edit 2 years ago
3.切換到concole分頁,貼入下面這串語法
document.querySelectorAll(".name")[Math.floor(Math.random()*(document.querySelectorAll(".name").length))].textContent;
https://images.plurk.com/KsbkztFglGnCzrw8mcL0D.png
立即下載
ami亞海🐧
2 years ago @Edit 2 years ago
4.按下enter後抽一個,要再重複抽的話,按鍵盤方向鍵↑會自動輸入上次的語法,再按enter再抽
https://images.plurk.com/2MFYHD8avyymzS4IPfpUpr.png
簡單寫,所以沒有排除自己的帳號或是已經抽過的,但人工判斷後多抽幾次就可以了!
ami亞海🐧
2 years ago @Edit 2 years ago
使用注意
有些噗太長的話,不會一次展開全部的內容,記得請先打開全部的回覆後再使用才能抽到全部的人
是的,這就是基本的爬蟲(?)
如果還是需要全部名單的話,就這串
for(i=0;i<document.querySelectorAll(".name").length;i++){console.log(document.querySelectorAll(".name")[i].textContent);}
再複製到其他地方做處理即可
https://images.plurk.com/qEj3A2DWvT6WTCtzmnnON.png
玖/KYU-
2 years ago
好棒!謝謝分享
ami亞海🐧
2 years ago
要抽「轉噗」或「喜歡」名單的話,請先在畫面把按下「轉噗」或「喜歡」,然後輸入這串
document.querySelectorAll("ul li a div")[Math.floor(Math.random()*(document.querySelectorAll("ul li a div").length))].textContent;
https://images.plurk.com/2y3d3YQNHo3ETFtIQOH4K3.png
ami亞海🐧
2 years ago @Edit 2 years ago
LikeCoin - Reinventing the Like如果您喜歡我的提供的語法,請按5下Like!
ami亞海🐧
2 years ago
soralia: 哇,謝謝,人太好了吧XD
ami亞海🐧
2 years ago
趕快來辦一下抽獎(??
XD 結果因為好抽所以辦?這好像不大對XD
ami亞海🐧
2 years ago
cheyi: 有工具就要用
ami亞海🐧
2 years ago
cheyi: line bot計字數機器人我到現在也都有在用啊
感動QAQ (我都沒用(喂
back to top