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

Add debug logging for xpath scraping #555

Merged
merged 2 commits into from
May 20, 2020

Conversation

WithoutPants
Copy link
Collaborator

Adds debug logging for xpath scraping. This is to assist the creation of community scrapers.

Outputs the value of each xpath field in the form of [index][field] = value. Also outputs regex replacements and sub-scraping operations.

@WithoutPants WithoutPants added the improvement Something needed tweaking. label May 18, 2020
@bnkai
Copy link
Collaborator

bnkai commented May 18, 2020

Looks good.
A potential improvement if it's easy.
I get a list of [Name] attributes 0 to 19 that are performer and then tag names ( if the scraper i used had studios i'm guessing that also). An extra print of "performer" or "tag" in between to distinguish would be nice.

@WithoutPants
Copy link
Collaborator Author

Easiest way was to add logging before processing each part of the scene members.

@WithoutPants WithoutPants merged commit ec420df into stashapp:develop May 20, 2020
Tweeticoats pushed a commit to Tweeticoats/stash that referenced this pull request Feb 1, 2021
* Add debug logging for xpath scraping
* Add logging for processing scene members
@WithoutPants WithoutPants deleted the xpath-logging branch February 4, 2021 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something needed tweaking.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants