<commit_before>const Chromeless = require('chromeless').Chromeless;
const url = process.argv[2];

new Chromeless({launchChrome: false}).goto(url)
  .evaluate(() => {
    var video;
    try {
      video = 'https://openload.co/stream/'+$('#streamurl, #streamuri, #streamurj').text();
    } catch(e) {
      video = 'video';
    }
    return video.indexOf('undefined') == -1 ? video : 'video';
   })
  .end()
  .then(console.log);
<commit_msg>update openload<commit_after>const Chromeless = require('chromeless').Chromeless;
const url = process.argv[2];

new Chromeless({launchChrome: false}).goto(url)
  .evaluate(() => {
    var video;
    try {
    var streamurl_src;
    $('p[id]').each(function(){
     streamurl_src = streamurl_src || ($(this).text().match(/^[\w\.~-]+$/) && $(this).text().match(/~/)) ? $(this).text() : streamurl_src;
    });
      //video = 'https://openload.co/stream/'+$('#streamurl, #streamuri, #streamurj').text();
      video = 'https://openload.co/stream/'+streamurl_src;
    } catch(e) {
      video = 'video';
    }
    return video.indexOf('undefined') == -1 ? video : 'video';
   })
  .end()
  .then(console.log);

{'fraction_non_alphanumeric': 0.22144725370531823, 'fraction_numerical': 0.0034873583260680036, 'mean_word_length': 3.4153846153846152, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7618840', 'n_tokens_mistral': 404, 'n_tokens_neox': 390, 'n_words': 66}