Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorials or documentation? #6

Closed
DedrichVonDorn opened this issue Aug 19, 2014 · 7 comments
Closed

Tutorials or documentation? #6

DedrichVonDorn opened this issue Aug 19, 2014 · 7 comments

Comments

@DedrichVonDorn
Copy link

Are there any tutorials or documentation available for this? Something a bit more robust than the example of logging into GitHub?

@hickford
Copy link
Collaborator

You're right, there should be.

There's a small example of form submission in the tests, if it helps. My own code using the library I can't publish.

Leaving this open, I'd like to write a Sphinx / readthedocs site.

@halhx
Copy link

halhx commented Apr 14, 2015

Form Submission isn't good. I've just forked and will make some improvements there. Do you have a process for contributing code back?

@scarrick68
Copy link

Commenting to bring this back up. More in depth form example with submissions on consecutive pages, filling in select field (i mean elements), how to press a button on a page would all be very helpful.

@scarrick68
Copy link

The github example on the home page is unclear. I'm assuming this section

verify we are now logged in

messages = page2.soup.find('div', class_='flash-messages')
if messages:
print(messages.text)
assert page2.soup.select(".logout-form")

Checks for a div with that class which should only be present after log in. However, there is no div with class='flash-messages' on the login page or after being logged in. I checked in Chrome's console. the assert statement also didn't print anything when I ran the example.

print(page2.soup.title.text)

just prints "Github"

@moy
Copy link
Collaborator

moy commented Aug 24, 2016

I have some pieces of code using MechanicalSoup here: https://gitlab.com/chamilotools/chamilotools if anyone wants example. I think a "Projects using MechanicalSoup" section could be added to the README of MechanicalSoup so that people looking for examples can find more.

@eoghanmurray
Copy link
Contributor

And another example (unfortunately an account is needed to see it in action, but might be useful as an example of a login/download/unzip-files pattern):
https://github.com/GoPixie/rdg-to-db/blob/master/download

@moy moy mentioned this issue Oct 12, 2017
6 tasks
@moy
Copy link
Collaborator

moy commented Oct 16, 2017

OK, there's now a tutorial on http://mechanicalsoup.readthedocs.io/en/latest/, and there's a separate issue at #114 to track remaining missing docs.

@moy moy closed this as completed Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants