mechanize-python

    0熱度

    1回答

    有誰知道如何獲取我使用mechanize瀏覽器登錄的cookie,以便我可以使用pdfkit中的那些url?我查了一下,但無法理解如何以正確的格式獲取cookie並將其傳遞到pdfkit.from_url。

    -1熱度

    2回答

    我有一個使用python mechanize和bruteforce html格式的腳本。這是一個for循環,用於檢查「PassList」中的每個密碼,並通過檢查重定向的url來運行,直到它與當前密碼匹配。我如何能實現這裏 for x in PasswordList: br.form['password'] = ''.join(x) print "Bruteforce in

    0熱度

    1回答

    選擇禁用的形式 我一直在試圖選擇具有在按鈕「已禁用」屬性和python繼續給錯誤說一種形式: AttributeError: control 'None' is disabled 的形式如下: <form method="POST" action="http://test.com" accept-charset="UTF-8"> <input name="abc" type="hidden"

    1熱度

    1回答

    我試着通過提交這個提交按鈕 <div class="input-btn"> <a class="iconized post-clear" href="" ng-show="!postdata.data.$error.required" ng-click="clearData()" title="Clear Field"><i class="icon-x" ></i></

    0熱度

    1回答

    我想使用thread.Timer類,但我不斷收到崩潰。 這裏有個想法:我有一個代碼可以啓動一個Web應用程序的優化。優化啓動後,我想定期向Web應用服務器發送請求,以瞭解優化是完成還是仍在執行。 def checkPeriodically(self): print "Sending a request" finished = self.checkOptim() if

    -1熱度

    1回答

    我試圖讓腳本獲取密碼(我已經知道我的帳戶密碼)幾個小時後,我被鎖定在我的Facebook帳戶之外。我的python腳本有問題嗎,還是我嘗試使用它的方式錯了? 腳本: passwordsfile = open('file.txt','r') for pwd in psswordsfile.read(): br = mechanize.Browser() br.set_handl

    1熱度

    1回答

    我想創建一個使用機械化將數據提交到Web窗體的python腳本。 這是我迄今爲止 import mechanize username = <my_username> password = <my_password> url = <my_url> print "opening browser" br = mechanize.Browser() print "opening url

    0熱度

    1回答

    我正嘗試使用Python中的Mechanize提交表單。表格顯示爲 Form name: None <GET http://www.wunderground.com/cgi-bin/findweather/getForecast application/x-www-form-urlencoded <HiddenControl(airportorwmo=query) (readonly)

    -1熱度

    1回答

    我很新的蟒蛇,我試圖刮使用BeautifulSoup,這需要登錄的網頁。 到目前爲止,我有 import mechanize import cookielib import requests from bs4 import BeautifulSoup # Browser br = mechanize.Browser() # Cookie Jar cj = cookielib.LW

    0熱度

    1回答

    我使用機械化(http://wwwsearch.sourceforge.net/mechanize/)登錄到www.coinotron.com,但執行掛起,當我做br.submit() import mechanize ... br = mechanize.Browser() br.open("https://coinotron.com/app?action=logon") form =