Giter VIP home page Giter VIP logo

cheeriogs's Introduction

cheeriogs's People

Contributors

dependabot[bot] avatar oshliaer avatar renovate-bot avatar renovate[bot] avatar tani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cheeriogs's Issues

"getContent_" is not defined.

function Test() {
  const content = getContent_('https://en.wikipedia.org');
  const $ = Cheerio.load(content);
  Logger.log($('#mp-right').text());
}
[19-04-26 11:46:20:289 EEST] Starting execution
[19-04-26 11:46:24:063 EEST] Execution failed: ReferenceError: "getContent_" is not defined. (line 2, file "Test") [0.001 seconds total runtime]

Please clarify usage examples.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

How to get tag? (updated)

Hi!
your example: Logger.log($('#mp-right').text());
How to get tag?

Thanks

ps

Does not work : Logger.log($('#mp-right'));

Works : Logger.log(' ' + $('#mp-right'));

In XPATH I use '''...and''' to add an additional criterion, in cheeriogs is there this option?

First I would like to thank for the project because it is magnificent, second I want to apologize for the beginner question and I hope don't think it's bad for me to ask for help in the doubt.

Using =IMPORTXML('url','xpath') I make the call with this XPATH:

//div[contains(@class,'match-card') and ../../td[@class='score-time ']/a[contains(@href, 'matches')]]

The idea is to collect the div that contain the @class with the word match-card
BUT
he needs to have td linked to @class='score-time' and a contains the @href with the word matches

I tried to find a way to do this with CHEERIOGS but it always returns blank, my attempts were:

    $('tr:contains(td.score-time > a[href^="/matches/"]) > div[class^="match-card"]')
                  .each((index, element) => {ss.getRange(index + 2, 2).setValue($(element).text().trim());});
    $('tr td.score-time:contains(a[href^="/matches/"]) > div[class^="match-card"]')
                  .each((index, element) => {ss.getRange(index + Alast + 2, 2).setValue($(element).text().trim());});
    $('tr td.score-time > a[href^="/matches/"] > div[class^="match-card"]')
                  .each((index, element) => {ss.getRange(index + Alast + 2, 2).setValue($(element).text().trim());});

Could help me on how I could go about achieving my expected result?

well done!

I appreciate your project. It works like a charm. Thank you for sharing it.

Remove breakpoints

I am using the library directly (no copy) in my project. This has made my project difficult to debug since there appears to be breakpoints in the library, and so the debugger keeps stopping on those remote breakpoints. Please clear?

errors while loading library

I add the project key "1ReeQ6WO8kKNxoaA_O0XEQ589cIrRvEBA9qcWpNqdOP17i47u6N9M5Xh"
to library, select version.

But library fail to load. with many errors like

null [1787]
.....
__webpadk_required

This can't be use on GAS web editor?

Any ideas?

Limit on query?

Hi all!
Are there any limits with CSS selectors?
It only returns the first 50 elements

let items = $('.grid__Name-cmp__sc-li856a-4');

Thanks and best regards

how to work with each element returned by a selection

How do I manage each element returned by a selector?

This code works well:

  const content = getContent_('https://en.wikipedia.org');
  const $ = Cheerio.load(content);
  Logger.log($('h2').text());

But this other one gives me an error:

  const content = getContent_('https://en.wikipedia.org');
  const $ = Cheerio.load(content);
  $('h2').each(function(e){Logger.log($(this).text())});

What's wrong?

Thank you.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/node.js.yml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/cache v4
npm
package.json
  • cheerio ^1.0.0-rc.10
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • @google/clasp 2.4.2
  • babel-loader 9.1.3
  • gas-webpack-plugin 2.5.0
  • webpack 5.91.0
  • webpack-cli 5.1.4

  • Check this box to trigger a request for Renovate to run again on this repository

What license does this use?

Hi,

I'd appreciate if you could add information about the licensing to the package. Many organisations are quite rigid about this stuff.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.