Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
55 views

With perl's mechanize module, nearly anything seems possible. But I'm not using perl, unfortunately, I still expected to be able to do what was needed with python. The login page that I have to ...
John O's user avatar
  • 5,675
1 vote
0 answers
51 views

I want to learn how to submit values to a webpage form by using python. I have created the following web page http://www.vproce.net/deu-hdp.html I want to submit the following values to the form ...
bkarpuz's user avatar
  • 113
-1 votes
1 answer
290 views

import mechanize import json import re from bs4 import BeautifulSoup import requests browser = mechanize.Browser() class login: def __init__(self): email = "aaaa" ...
Ajay's user avatar
  • 89
0 votes
1 answer
67 views

I have some code on page like this: <div class="tabs1_cnt" id="pupil_tabs_content_2189609"> <div class="pupil_tabs_content_item tabs1_cb" id="...
TimTProd.'s user avatar
1 vote
0 answers
137 views

I am trying to automate geocoding with python. There is a simple website that does this, but I don't want my user to manually visit the website. I want to automatically take his adress and convert it ...
WhiteWood's user avatar
  • 103
0 votes
1 answer
259 views

I'm trying to use mechanize in python to login to this site: https://login.haaretz.co.il/ On the surface, it looks like a 2-phase login process, same as google, but following receipts for google login ...
sigSegv's user avatar
1 vote
0 answers
327 views

I am trying to login to a financial service I am a customer to retrieve automatically some data by using Python requests. I have been inspired by this page: import requests from typing import Dict ...
Jean-Francois T.'s user avatar
1 vote
1 answer
3k views

I am try to figure out how to get Oauth 2 working in my python code. import requests, json import webbrowser authorize_url = "https://tcfhirsandbox.com.au/oauth2/authorize" token_url = &...
Rusty's user avatar
  • 11
1 vote
0 answers
434 views

I just started playing around with python. Recently I stumbled upon web scraping and I thought that it would not be that hard to make a Kahoot (https://kahoot.it/) bot. You may or may not know what I'...
jan havel's user avatar
5 votes
1 answer
2k views

I am filling a form of a web page with the help of mechanize module but I am getting error when I run my code. I just want to fill the form and submit it successfully. My attempt : code snippet from ...
Ratnapal Shende's user avatar
1 vote
1 answer
192 views

I'm currently trying to transfer some of my code to either urllib3 or requests. urllib3 would be the preferred method to reduce the modules imported. This is the code currently working. payload = [&...
shanks3042's user avatar
0 votes
1 answer
342 views

I'm trying to automate filling a car insurance quote form on a site: (following the same format as the site URL lets call it: "https://secure.examplesite.com/css/car/step1#noBack") I'm ...
user avatar
-1 votes
1 answer
55 views

I found this code online and I tried my best to patch it. I don't understand whats wrong with this program. This code takes in Netflix accounts and outputs the working accounts. import mechanize ...
alnesef2002's user avatar
0 votes
1 answer
186 views

I'm currently working on website scraper. Because I have to log in to access the website, a session ID has to be generated and saved for further usage. The session ID is at the end of the URL. https://...
maycookie's user avatar
0 votes
1 answer
115 views

I am trying mechanize library to register a user. There are 4 fields firstname, lastname, email, password. Every field is required but If I run this code it runs successfully and doesn't give error ...
the_badev's user avatar
0 votes
0 answers
132 views

I am writing an application where it retrieves data from a film database. To achieve the same, I am using BeautifulSoup and Mechanize for the same. Thus, while setting the proxy as with in the below ...
Shrok tim's user avatar
0 votes
1 answer
2k views

I know there are already alot of topics writing about this topic, but none could held me. import mechanicalsoup browser = mechanicalsoup.StatefulBrowser() browser.set_user_agent( 'Mozilla/5.0 (...
Oliver W's user avatar
0 votes
1 answer
855 views

I am trying to fill out a specific form on a webpage but the CSS selector I am using returns an error I have tried these separately: 1. browser.select_form('form[method="post"]') 2. browser....
David Hampton's user avatar
0 votes
1 answer
227 views

i am trying to search trough the WIPO brand register with python, but if i am checking the formdata which got send to the server i don't really understand what this is. Form Data: This is the ...
Oliver W's user avatar
0 votes
1 answer
2k views

I've recently been working on a script that accesses a website's form to log in. Tried with requests but it seems that mechanize works better for this application. Was asking around and I wrote this ...
MrAureliusR's user avatar
0 votes
1 answer
48 views

I am creating a script that submits a form. The problem I am facing is that some options are hidden and do not show options (in HTML source code), until other fields are filled. The error I am ...
Toutsos's user avatar
  • 369
0 votes
0 answers
256 views

I am attempting to run search button in "https://www.facebook.com/login/identify/?ctx=recover&ars=royal_blue_bar" using mechanize but it shows me: AttributeError: class HTMLForm has no attribute '...
Hama Hawlery's user avatar
0 votes
0 answers
110 views

Basically what the title says. I'm trying to automatically fill out a form containing radio buttons, but I keep getting this error from line 7. mechanize._mechanize.FormNotFoundError: no form ...
Julia Fasick's user avatar
1 vote
0 answers
27 views

Sorry if the title is poor. This code is copied, so I don't know what the first few lines do. The site I want to scrape first asks for the email, which after submission asks for the password. When I ...
MQStacked's user avatar
1 vote
1 answer
436 views

I am trying to upload image file into the browser using mechanize. Although there is no error, the uploaded file does not reflect when I check manually in the browser (post submit/saving). I am using ...
Ash Sharma's user avatar
0 votes
1 answer
451 views

I am trying to log in to Facebook using Mechanize. I have written these two different scripts to log in: Script 1 br = Browser() br.set_handle_robots(False) userName = 'My EmailID' password = 'My ...
Golden Heart's user avatar
6 votes
5 answers
1k views

I have tried to write the following code, I am trying to write a code in Python 3.7 that just opens a web browser and the website fed to it in the Command Line: Example.py import sys from mechanize ...
Code_Ninja's user avatar
  • 1,877
0 votes
0 answers
70 views

Mechanize is not working with python 2.x while using "Browser" in mechanize failing. import re from mechanize import Browser br = mechanize.Browser() br.open("https://en.wikipedia.org/wiki/...
jeetpal's user avatar
0 votes
1 answer
3k views

I am trying to POST JSON data to a api using a python script. I'm using python 2 and mechanize package. import mechanize import json, logging, sys, urllib br = mechanize.Browser() url = 'url_here' ...
Avishek Saha's user avatar
0 votes
0 answers
818 views

i am newbie to python. I am using python 2.7 and trying to scrape the website and collect the data . I am having issue in selection of drop down list and getting new response form with updated list of ...
sandalwood's user avatar
3 votes
0 answers
231 views

I need the response in order to make Python decide what to do next, but the response keeps being empty. What could be the problem? import mechanize br = mechanize.Browser() br.set_handle_robots(...
user avatar
0 votes
1 answer
195 views

Does anyone know how to get a cookie that I have logged into using mechanize browser, so that I can use those urls in pdfkit? I have looked around a bit, but can't manage to see how to get a cookie in ...
arias_JC's user avatar
  • 569
0 votes
1 answer
281 views

I am using mechanize (http://wwwsearch.sourceforge.net/mechanize/) to login to www.coinotron.com, but the execution hangs when I do br.submit() import mechanize ... br = mechanize.Browser() br....
elena's user avatar
  • 73
-1 votes
1 answer
186 views

I'm very new to python, and I'm trying to scrape a webpage using BeautifulSoup, which requires a log in. So far I have import mechanize import cookielib import requests from bs4 import ...
M. Ram's user avatar
  • 1
-1 votes
1 answer
192 views

I was locked out of my Facebook account for a few hours after I tried to make a script get my password (I already know my account's password). Do I have a problem in my python script, or is the way I ...
alan's user avatar
  • 3
1 vote
0 answers
176 views

I've been trying and looking for help like crazy, and I have not been able to solve this issue. Could you please help me on getting the table content inside the iFrame... On my code I was able to ...
Alberto Rocha's user avatar
1 vote
0 answers
134 views

<form method="post" action="/user/user_login_prov.jsp"> <table id="userpass" class="separator"> <tr class="gap"><th>&nbsp;</th><td>&nbsp;</...
Harshit Budhraja's user avatar
1 vote
0 answers
125 views

I'm trying to learn mechanize module but getting this import error while doing the basic thing I got this error Traceback (most recent call last): File "C:/Users/HUNTER/PycharmProjects/...
P.hunter's user avatar
  • 1,375
0 votes
0 answers
70 views

I have been trying to make a program with Mechanize to comment on "https://scratch.mit.edu/projects/138659469/" but it hasn't been working and I don't know why. I don't know which form number it is, ...
Phonzi's user avatar
  • 144
1 vote
1 answer
2k views

I am trying to create a python script that uses mechanize to submit data to a web form. This is what I have so far import mechanize username = <my_username> password = <my_password> url =...
Matt's user avatar
  • 2,350
1 vote
1 answer
2k views

Im trying to submit a form by submitting to this submit button <div class="input-btn"> <a class="iconized post-clear" href="" ng-show="!postdata.data.$error.required" ng-click="...
H2SO4's user avatar
  • 11
0 votes
0 answers
494 views

I am new to Python and Scrapy. I have to auto login my university student portal and then scrape student data out of that website. Can I do the autoLogin with mechanize and then scrape the data with ...
Ramsha Khan's user avatar
0 votes
2 answers
512 views

I have a script that use python mechanize and bruteforce html form. This is a for loop that check every password from "PassList" and runs until it matches the current password by checking the ...
knobiDev's user avatar
  • 480
0 votes
0 answers
42 views

I'm very new to Python so I apologize if this is an easy question, I'm trying to write a web scraper to scrape Google for all relevant links pertaining to networking, using BeautifulSoup, and ...
PythonicPenguin's user avatar
2 votes
0 answers
248 views

I have to login on paypal using mechanize in python.I tried many codes but invent.Same code is applicable for login on gmail but not work for paypal login.I tried code below.. import mechanize from ...
Kirti Chichmalkar's user avatar
0 votes
1 answer
487 views

I'm making a scraper to grab a list of my friends from facebook then scrape a list of mutual friends from them, with goal of constructing a web with the data. I looked at the official facebook api, ...
Astor Thrope's user avatar
0 votes
1 answer
309 views

I am trying to use the thread.Timer class, but I keep getting crashes. Here is the idea : i have a code that launches an optimisation on a web application. When the optimisation is launched, i want to ...
Ril8772's user avatar
  • 141
0 votes
1 answer
1k views

I am trying to scrap gmail.com and have used mechanize to authenticate but since gmail has two step authentication it was quite tricky but i managed to login but i face loading problem. My code is ...
Vivek Rahul's user avatar
0 votes
1 answer
86 views

I had a issue with ntlm authentication and mechanize. After going through the below post i understood that i need to modify the _response.py file of mechanize. Use python mechanize to log into pages ...
newbieuser's user avatar
0 votes
0 answers
688 views

I want to set a value to a select control but there is no form in the html, so when I try to get the component by name, like this: br.select_form(nr=0) br.find_control(name="selectName").value = ["...
Wilder Pereira's user avatar

1
2 3 4 5