Menu

Highlights Instructions


To have your highlights included on the Highlights page, you will need to provide the following to us:

Each day at midnight, the scraper will gather the headlines and submit a merge request to the SciDAC repository. The merge request will be approved manually.

Examples

CSS

The following code block provides an example of how you can mark highlights for the scraper:

  <li class="scidac">
    <a href="highlights/Pasta_strength.pdf">Nuclear Pasta: strongest material in the universe</a>
      <br>&nbsp;&nbsp;&nbsp;[contact: Chuck Horowitz, horowit at indiana.edu]
  </li>
  <li class="scidac">
    <a href="highlights/highlight_NUCLEI_9He.pdf">Neutron-Rich Helium Isotopes: Complex Made Simple</a>
      <br>&nbsp;&nbsp;&nbsp;[contact: Kévin Fossez, kevin.fossez at gmail.com]
  </li>
  <li class="scidac">
    <a href="highlights/Bayesian extrapolations.pdf">Bayesian approach to model-based extrapolation of nuclear observables</a>
      <br>&nbsp;&nbsp;&nbsp;[contact: Witold Nazarewicz, witek at frib.msu.edu]
  </li>

The scraper looks for all link elements nested inside elements with a class of scidac, and utilizes their hyperlink and the interior text.

An alternate way of doing this would be to place the CSS selector on a parent element of the links you want scraped. In the example below, the links which are inside the div with class scidac will be scraped exactly as they were in the above example:

  <a href="https://example.com">Header link which will NOT be scraped</a>
  <div class="scidac">
    <ul>
      <li>
        <a href="highlights/Pasta_strength.pdf">Nuclear Pasta: strongest material in the universe</a>
          <br>&nbsp;&nbsp;&nbsp;[contact: Chuck Horowitz, horowit at indiana.edu]
      </li>
      <li>
        <a href="highlights/highlight_NUCLEI_9He.pdf">Neutron-Rich Helium Isotopes: Complex Made Simple</a>
          <br>&nbsp;&nbsp;&nbsp;[contact: Kévin Fossez, kevin.fossez at gmail.com]
      </li>
      <li>
        <a href="highlights/Bayesian extrapolations.pdf">Bayesian approach to model-based extrapolation of nuclear observables</a>
          <br>&nbsp;&nbsp;&nbsp;[contact: Witold Nazarewicz, witek at frib.msu.edu]
      </li>
    </ul>
  </div> <!-- end .scidac -->
  <a href="https://example.net">Footer link which will NOT be scraped</a>


Appearance

The following image provides an example of what your content will look like on the Highlights page, utilizing links from NUCLEI as an example:

Content As Displayed On NUCLEI

original website highlights example

SciDAC Highlights Page Display

SciDAC Highlights display example

(The section header will have a hyperlink to the original highlights source.)

Troubleshooting

The scraper will show up with a Referer request header of WASABI in your logs. As the scraper will only scrape the exact HTML page you provide, it ignores robots.txt files.


Last updated: 23 July 2019