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

How to get page title? #141

Open
Duartemartins opened this issue Nov 19, 2021 · 1 comment
Open

How to get page title? #141

Duartemartins opened this issue Nov 19, 2021 · 1 comment

Comments

@Duartemartins
Copy link

Duartemartins commented Nov 19, 2021

Hey I'm stuck trying to get the title of a page. The documentation doesn't state a get_title() method and when I try get_headers() the following error is returned: `AttributeError: 'Session' object has no attribute 'get_headers'

https://arsenic.readthedocs.io/en/latest/reference/session.html

@Duartemartins Duartemartins changed the title How to get title? How to get page title? Nov 19, 2021
@amckenzie132
Copy link

It would be nice to have a get_title() method. In the meantime I'm using this workaround:

title = await session._request(url="/title", method="GET")

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

2 participants