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

Ability to search pages by CSS selector #92

Open
chosak opened this issue Jun 5, 2024 · 0 comments
Open

Ability to search pages by CSS selector #92

chosak opened this issue Jun 5, 2024 · 0 comments

Comments

@chosak
Copy link
Member

chosak commented Jun 5, 2024

It would be nice to be able to search page HTML that contains elements matching a given CSS selector.

To do this in a performant way that is consistent with other search methods, we would want to implement this as a SELECT in the database somehow.

For the current SQLite backend, we might be able to use sqlite-html (unfortunately requiring a newer Python version than other existing requirement wpull supports). This would also require compiling Python with --enable-loadable-sqlite-extensions.

Looking ahead to a possible Kubernetes deployment that uses PostgreSQL RDS instead, we might be able to use PLV8 to execute the query using JavaScript. PLV8 is available as an extension in AWS RDS.

(As discussed with @anselmbradford and @wpears)

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

1 participant