Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bioclipse/bioclipse.core
base: fdd5b432a071
Choose a base ref
...
head repository: bioclipse/bioclipse.core
compare: 32706bfd2c0a
Choose a head ref
  • 2 commits
  • 0 files changed
  • 2 contributors

Commits on Aug 22, 2015

  1. Added a manager to allow me to use jsoup.

    An example:
    
    htmlFilename = "/ECHA/substance.html";
    dossierFolder = "http://apps.echa.europa.eu/registered/data/dossiers/";
    testURL = dossierFolder + "DISS-9d8ad2a1-0d51-13f7-e044-00144f67d249/AGGR-7e14e77e-8a7d-4f8d-ab80-d0b7df6bb939_DISS-9d8ad2a1-0d51-13f7-e044-00144f67d249.html";
    
    htmlFile = bioclipse.downloadAsFile(testURL, "text/html", htmlFilename);
    
    doc = jsoup.parse(htmlFilename);
    
    id = jsoup.select(doc, "#body .structuralFormula img").attr("src").split("_")[0];
    name = jsoup.select(doc, "#body .name .value").text()
    ecNumber = jsoup.select(doc, "#body .ecNumber .value").text()
    casNumber = jsoup.select(doc, "#body .casNumber .value").text()
    molecularFormula = jsoup.select(doc, "#body .molecularFormula .value").first().text()
    iupacName = jsoup.select(doc, "#body .iupacName .value").text()
    smiles = jsoup.select(doc, "#body .smilesNotation .value span").text()
    inchi = jsoup.select(doc, "#body .inchi .value span").text()
    egonw committed Aug 22, 2015
    Copy the full SHA
    4af5acd View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2015

  1. Merge pull request #62 from egonw/feature/jsoup

    Added a manager to allow me to use jsoup.
    goglepox committed Sep 16, 2015
    Copy the full SHA
    32706bf View commit details
    Browse the repository at this point in the history