SAve Text From Website

Hello evryone!!

i have this code

{
“Name”: “Test”,
“CreationDate”: “2024-11-19”,
“Commands”: [
{
“Command”: “open”,
“Target”: “NFL Team Needs: Prioritizing Every Roster's Biggest Weaknesses Before Week 12 | News, Scores, Highlights, Stats, and Rumors | Bleacher Report”,
“Value”: “”,
“Description”: “Open the target website”
},
{
“Command”: “storeText”,
“Target”: “//*[@id=‘slide0’]//p[contains(text(), ‘Every week of the season’)]”,
“Value”: “extractedText”,
“Description”: “Extract the specific text and store it in a variable”
},
{
“Command”: “store”,
“Target”: “${extractedText}”,
“Value”: “!csvLine”,
“Description”: “”
},
{
“Command”: “csvSave”,
“Target”: “CurrencyConverterData”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “localStorageExport”,
“Target”: “currencyconverterdata.csv”,
“Value”: “”,
“Description”: “”
}
]
}

this code the rule it’s does are extract text from website and save it at file .csv

i need to save that text as file .txt like save it at file calledoutput.txt

i have tried every command that exist but nothing work

So all works, but you need to change the file extension from .csv to .txt?

1 Like

Yes this is what i’m ask for

The file saved with localStorageExport |text.csv is a text file, but the ending will always be .csv. If changing the file extension is important, you can use XRUN to run a small Python or Powershell (etc) script to rename the file.

1 Like

thank you so much for fast respond and for solution .

from now i’ll use powershall or pathon to change .scv to txt