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 annotation for result formatter #12

Closed
code4craft opened this issue Aug 19, 2013 · 1 comment
Closed

Add annotation for result formatter #12

code4craft opened this issue Aug 19, 2013 · 1 comment

Comments

@code4craft
Copy link
Owner

Some times we need to add some text before or after extracted result, such as "ID"+id for field String id, or fill more than one result in a single field, such as name1+"|"+name2 for field name. Add a annotation like that:

@Formatter(value=@ExtractBy("//div[@id='id']"),template="ID%s")
private String id;
@ghost ghost assigned yuany Aug 19, 2013
@code4craft
Copy link
Owner Author

Move these feature to Woody

@sutra sutra added this to the WebMagic-0.7.4 milestone Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants