HTML Extract Problem

Describe the problem/error/question

Cant get the right CSS selector. Checed other posts about this, people’s selector seems to be much simpler. TO get the selecotr, I went to website and get the selector from inspecting the website link element

What is the error message (if any)?

nothing, returns empty array

Please share your workflow

{
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “b9d3412cb909ca5769275f8f0b5439aee3569da2a180e67a22e82c8a2e992db9”
},
“nodes”: [
{
“parameters”: {},
“id”: “e0a34020-9e04-4dde-8c65-f9cb1badea54”,
“name”: “When clicking "Test workflow"”,
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
500,
360
]
},
{
“parameters”: {
“url”: “=https://www.eurocis.com/vis/v1/de/exhprofiles/14yeJ3BxRsKftgGku5DuJw?oid=49775&lang=1&_query=&f_type=profile”,
“options”: {}
},
“id”: “95195cd4-1b3f-4cf5-894a-87202ead5d0b”,
“name”: “HTTP Request”,
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.1,
“position”: [
1040,
360
]
},
{
“parameters”: {
“operation”: “extractHtmlContent”,
“extractionValues”: {
“values”: [
{
“key”: “website”,
“cssSelector”: “#profile-business-data > div.business-info > div.profile-business-exh-contact > div.exh-contact > div.exh-contact-links > div.link-list.link-list–slim > ul > li > a”,
“returnValue”: “html”,
“returnArray”: true
}
]
},
“options”: {}
},
“id”: “7210dcc9-9120-40ed-b30c-e18e2f1cb523”,
“name”: “HTML”,
“type”: “n8n-nodes-base.html”,
“typeVersion”: 1,
“position”: [
1260,
360
]
}
],
“connections”: {
“When clicking "Test workflow"”: {
“main”: [
[
{
“node”: “HTTP Request”,
“type”: “main”,
“index”: 0
}
]
]
},
“HTTP Request”: {
“main”: [
[
{
“node”: “HTML”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {}
}

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)


## Share the output returned by the last node
<!-- If you need help with data transformations, please also share your expected output. -->
This should be passing me the website link
## Information on your n8n setup
- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** Cloud
- **Operating system:** Fedora

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hello @Firat_Ersin_Corbaci

According to the site, there is no such css as ‘#profile-business-data

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.