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

Use Case: Document Keeping HTML Tags in Text Output #63

Closed
ianmilligan1 opened this Issue Nov 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@ianmilligan1
Member

ianmilligan1 commented Nov 2, 2018

Interesting use case at the datathon where they wanted to work with the raw HTML to help find data using specific tags. Makes sense to me! I will add to the documentation.

Thanks to @obrienben for the suggestion.

Testing with:

import io.archivesunleashed._
import io.archivesunleashed.matchbox._

RecordLoader.loadArchives("/mnt/vol1/data_sets/ubc-wildfires-2017/*.gz", sc)
  .keepValidPages()
  .map(r => (r.getCrawlDate, r.getDomain, r.getUrl, r.getContentString))
  .saveAsTextFile("/mnt/vol1/derivative_data/ubc-wildfires-2017/plain-html")

Will see how it works with the team and if this meets needs, will add to our docs.

@ianmilligan1 ianmilligan1 self-assigned this Nov 2, 2018

@ianmilligan1 ianmilligan1 changed the title from Use Case: Document Keeping HTML to Use Case: Document Keeping HTML Tags in Text Output Nov 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment