Comments (3)
First, thank you for using my library. The expressive power of xpath is stronger than css selector. Generally speaking, we cannot translate xpath to css selector on the straight forward. However, I guess the following code may work as you expect. Please try this.
td.score-time a[href*="matches"] div.match-card
This question is not directly related to this library. I mean, you can get the better answer on the Stackoverflow because this is the problem how to translate xpath to css selector. Of course, I have a little bit tips about this. Please attach (i) target xml data (ii) xpath code (iii) expected raw result if you want to ask me more detail.
from cheeriogs.
Hi @tani as I didn't know about the availability to solve doubts around here, I created a question on Stackoverflow, if you want and can analyze if there is anything to add and complement, here is the link:
from cheeriogs.
I am really happy you finally get the answer. Congrats!
from cheeriogs.
Related Issues (20)
- `ReferenceError: getContent_ is not defined`after exporting library on GAS HOT 1
- This looks great! Where do I find the methods available? HOT 3
- how to work with each element returned by a selection HOT 2
- Upgrade Cheerio to v1.0.0-rc5
- How to get data-* attribs
- What license does this use? HOT 2
- google permissions HOT 1
- Not returning same value as querySelector HOT 1
- How to get tag? (updated) HOT 2
- Limit on query? HOT 2
- Please check script ID and read permissions settings. HOT 1
- Remove breakpoints HOT 6
- Error "Object does not allow properties to be added or changed." HOT 7
- "getContent_" is not defined. HOT 2
- Request for examples:
- well done!
- Dependency Dashboard
- errors while loading library HOT 1
- Problems with some sites. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cheeriogs.