Python Forum
using webbot for website login fails
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using webbot for website login fails
#1
Hi there, i am just starting with python and read that there is such a nice method to login into websites (and later i want extract data from it).

So I did "pip install webbot" and wrote to a file test.py:

from webbot import Browser
web = Browser()
web.go_to('web.de')
(just an example) - but what happens is that Chrome browser opens saying "not safe" and "data:,"
Why this? it's not even my default browser..

I was hoping to go strait forward like this example ("quick demo"):

https://webbot.readthedocs.io/en/latest/
Reply
#2
A new libary i have not seen before,it's just a wrapper around Selenium Python
(Jan-02-2019, 02:03 PM)loeten Wrote: Why this? it's not even my default browser..
Because that what library use as driver,see drivers.
If want to FireFox then need to use Selenium Python,and install geckodriver.

I did quick test in virtual environment,and it work for me.
from webbot import Browser
import time

web = Browser()
web.go_to('web.de')
time.sleep(3)
# Click agree to use cookie button
web.click(xpath='//*[@id="prioad"]/body/section/aside/button')
If new new to web-scraping in Python look at link under.
There is no need to Selenium all time for web-scraping,it should only be used when needed(can be problem to get JavaScript stuff,login ect...)
Web-Scraping part-1
Web-Scraping part-2
Reply
#3
(Jan-02-2019, 04:14 PM)snippsat Wrote: If new new to web-scraping in Python look at link under.
There is no need to Selenium all time for web-scraping,it should only be used when needed(can be problem to get JavaScript stuff,login ect...)
Web-Scraping part-1
Web-Scraping part-2

Thank you for this, this will help a lot!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Login and download an exported csv file within a ribbon/button in a website Alekhya 0 2,655 Feb-26-2021, 04:15 PM
Last Post: Alekhya
  Get element (ID) from website to login Olimpiarob 4 4,249 Jul-28-2020, 01:20 PM
Last Post: Martinelli
  Python Webscraping with a Login Website warriordazza 0 2,602 Jun-07-2020, 07:04 AM
Last Post: warriordazza
  Login to website kapibara 4 3,544 Jul-27-2019, 02:40 PM
Last Post: kapibara
  Login and access website mariolopes 7 9,232 Feb-07-2018, 09:47 AM
Last Post: mariolopes
  Using python requests module and BS4 to login on an Wordpress based website apollo 1 9,416 Feb-06-2018, 01:31 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020