2017年10月5日 星期四

借下學期場地啊!

得到國絹男友的幫助!!!!!!!!!
覺得很神!
大致上就是提前五分鐘開程式跑!
然後讓城市幫我搶場地啊!!!這太OP吧!!
怎麼比得上人工點點!!!
那麼總而言之成功了呢!

話說這樣我應該也可以用這個幫忙搶票啊!!
太扯了啊!!
不學python太虧了吧!!!!!
不過前一天晚上做超多確認的!
但是第二天真是太神啦!!

一開始我再9:56開始跑!
順順的跑!
結果十點一到(手機鈴聲一響
瞬間變超卡!!!
然後原本的借出變成NONE
然後我超緊張的!
想說那手動登入! 然後登不進去!!!!!!!!
說已經到達限額!
然後就想說阿啊 阿大事不妙!
不過此時已經10:03,想說成是如果有借到應該就是借到了!
所以果斷把程式關掉! 然後就再也登不進去!
重啟程式,程式也卡在登入那邊,超恐怖!

然後桌電登不進去,還好筆電燈進去了!
但是顯示是沒有借到場,心都涼了!
想說好沒關係先借場! 然網站超卡!!超卡的!
心涼到爆炸!

重新按超多次,好不容易登進去了! (心已死,想說差不多都被借完了吧~
一進去,發現借到場啦!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

把我的擔心還我啊!
覺得國絹男友真神啊!!!
迷克夏一定要請的啊!!

-----------前天晚上的狀態
先裝了python3,然後發現藥妝python2 XD
(因為裝 pip install twill 失敗了)

裝的東西:
cmd:
pip install twill
(pip2 install twill)
pythin
from twill.commands import *
from multiprocessing import Process
↑上面這兩行狂失敗

只好回cmd裝
pip install lxml
pip install requests
pip install cssselect

因為輸pythin還是失敗
from twill.commands import *
from multiprocessing import Process
去編輯C:\Python27\lib\multiprocessing\util.py 這個檔案
from subprocess import _args_from_interpreter_flags 這行移掉
然後那個位置加入
try:
    from subprocess import _args_from_interpreter_flags
except ImportError:
    _args_from_interpreter_flags = lambda :[]

然後我就得到程式啦~把程式放桌面 :)


怎麼用呢
打開cmd, 輸入cd Desktop
python club_hack.py