看板SportLottery
: 新版運彩計算總損益方式跟之前不太一樣
: 全程都是使用電腦操作
: 首先:登入運彩>按右上角人頭>我的帳戶>我的投注>已派彩>自訂日期區間>
: 一次最多一個月,所以就先查你要的月份1日~最後1日,然後瘋狂按最下面的顯示
: 更多,直到沒得按,讓整個月份的投注紀錄都出現為止,然後按下F12打開瀏覽器
: 開發人員視窗,切換到Console頁籤
: 先輸入以下程式碼然後按下enter:
: var script = document.createElement('script');
: script.src =
: 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js';
: document.getElementsByTagName('head')[0].appendChild(script);
: 再輸入以下程式碼按下enter:
: var total_lose = 0;
: $('.mgsstyles__BetDetailsContentContainer-sc-rnwzqa-14')
: .find('.src__SpanAmount-sc-9itihn-0').each(function()
: {
: var money=parseInt($(this).text().replace('NT$', '').replace(',',
: '').replace(' ', ''));
: total_lose-=money;
: });
: $('.flexboxgrid__RowNew-sc-trccvo-1')
: .find('.src__SpanAmount-sc-9itihn-0').each(function()
: {
: var money=parseInt($(this).text().replace('NT$', '').replace(',',
: '').replace(' ', ''));
: total_lose+=money;
: });
: total_lose
: 最後的數字就是損益了
: 如下圖
: https://imgur.com/a/hNfgADj
: 要查多個月份就是以上動作重複跑多個月份的再加起來
: 就會看到機掰的數字,幹
聽說最近有更新網站,目前程式碼算不到總損益,我看了一下的確是孬剛有改所以爬蟲爬
不到,這邊提供新的程式碼,其實只是一個數字從14變成15
第一段程式碼不變
第二段改成:
var total_lose = 0;
$('.mgsstyles__BetDetailsContentContainer-sc-rnwzqa-15')
.find('.src__SpanAmount-sc-9itihn-0').each(function()
{
var money=parseInt($(this).text().replace('NT$', '')
.replace(',', '').replace(' ', ''));
total_lose-=money;
});
$('.flexboxgrid__RowNew-sc-trccvo-1').find('.src__SpanAmount-sc-9itihn-0')
.each(function()
{
var money=parseInt($(this).text().replace('NT$', '')
.replace(',',
'').replace(' ', ''));
total_lose+=money;
});
total_lose
--
※ 批踢踢實業坊(ptt.cc), 來自: 180.177.108.130 (臺灣)※ 文章網址: https://www.ptt.cc/bbs/SportLottery/M.1715482598.A.589.html
推 luckywind: 感謝分享,覺得網站本身應提供計算才對 1.165.88.63 05/12 10:59
推 metcc80211: 讚讚 1.162.57.224 05/12 11:18
推 chys: 根本故意不提供 像賭場沒有時鐘 61.230.103.114 05/12 11:39
→ chys: 改版後甚至更難用 61.230.103.114 05/12 11:42
推 shih1899: 樓上一言不和就freestyle 1.164.226.82 05/12 11:45
推 akinari1992: 運彩記帳工具 https://reurl.cc/yL6A 42.70.99.100 05/12 11:48
→ akinari1992: aa 42.70.99.100 05/12 11:48
→ akinari1992: https://reurl.cc/yL6Aaa 42.70.99.100 05/12 11:48
推 xiahself: 推推 好厲害 185.213.82.245 05/12 11:51
推 sheeran45: 感謝 27.53.98.121 05/12 11:56
推 AAA3571: 推 42.76.227.252 05/12 14:33