![]() |
|
[Python] Python urllib HELP - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Python urllib HELP (/showthread.php?tid=5959916) |
Python urllib HELP - N0TR3DAMUS - Apr 13, 2019 Hi How to add python urllib click web button? Thanks any help! RE: Python urllib HELP - loomski - Apr 13, 2019 Look up "Python urllib POST example" RE: Python urllib HELP - N0TR3DAMUS - Apr 14, 2019 (Apr 13, 2019 11:47 AM)loomski Wrote: Look up Thanks! 🤝 (Apr 13, 2019 11:47 AM)loomski Wrote: Look up error: SyntaxError: invalid syntax My code: import urllib f = raw_input("Add your mail: ") b = raw_input("Add password: ") x = raw_input("Target mail: ") c = raw_input("Subject: ") url = 'gmailurl' data=urllib.urlencode{'Email or Phone':f 'submit': 'Next''Enter your password':b 'submit':'Next'} op = urllib.urlopen('gmailurl',data) RE: Python urllib HELP - Vassilios - Apr 14, 2019 I would recommend Requests against urllib. Also from your code, it would need way more data. Check this out: https://hackforums.net/showthread.php?tid=5952317 RE: Python urllib HELP - N0TR3DAMUS - Apr 14, 2019 [quote='Nachzehrer' pid='58468173' dateline='1555241217'] I would recommend Requests against urllib. Also from your code, it would need way more data. Thanks! 🤝 RE: Python urllib HELP - loomski - Apr 14, 2019 (Apr 14, 2019 12:40 AM)N0TR3DAMUS Wrote: Thanks! 🤝 I have no idea what you're trying to achieve though. RE: Python urllib HELP - dracx - Apr 14, 2019 (Apr 13, 2019 10:13 AM)N0TR3DAMUS Wrote: Hi If your sending emails, use.smtplib: https://stackabuse.com/how-to-send-emails-with-gmail-using-python/ Dont even think of using it to spamming though, it'll be pointless RE: Python urllib HELP - Mohinder - Apr 15, 2019 (Apr 13, 2019 10:13 AM)N0TR3DAMUS Wrote: Hi Clicking a button would be difficult with url lib or requests,. Ofcourse you can see what HTTP request is send after you click the button yourself and craft that request in your script. Or you could use selenium to interact with the webpage. RE: Python urllib HELP - demarco - May 17, 2019 In a lot of cases websites have javascript to load the buttons. So If you just looked at the html you grabbed with urlib, you might not even find the button in there at all. You need something like selenium to load the javascript then grab the html. If it's just clicking on something, dm the website and what button it is and I can write you up something in 5-10 lines. |