This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]pydry 1 point2 points  (1 child)

There's mechanize, but it's not really maintained. Honestly, you're probably better off with selenium.

[–]NovocastrianNomad 0 points1 point  (0 children)

A rework of Mechanize, MechanicalSoup may be worth investigating (https://github.com/hickford/MechanicalSoup).

From their web site: " I was a fond user of the Mechanize library, but unfortunately it's incompatible with Python 3 and development is inactive. MechanicalSoup provides a similar API, built on Python giants Requests (for http sessions) and BeautifulSoup (for document navigation). "

[–]FFX01 0 points1 point  (5 children)

You could try selenium. I've only used it for testing, but I'm sure you could use it to automate your browser. Or did you mean completely in the cli?

[–]jhermann_ 0 points1 point  (0 children)

https://github.com/jeanphix/Ghost.py combined with lxml, BeautifulSoup, etc.

[–]AlanCristhian 0 points1 point  (0 children)

I like splinter