I see references to Get As CSV once I am done with a Yahoo Pipe from other video sources but the link seems not to exist any longer under more options?
Is there an additional step I am meant to take to get this working?
And if not, how do I get my Pipe to export as CSV so that I can import it into another desktop app?
Thank you
Here you go:
Go to the page of your pipe, for example: http://pipes.yahoo.com/pipes/pipe.info?_id=99240a186b2099bc028d7d7e37c1f224
Click on the Get as RSS link, for example:
http://pipes.yahoo.com/pipes/pipe.run?_id=99240a186b2099bc028d7d7e37c1f224&_render=rss
Edit the URL, change the render=rss to render=csv, for example: http://pipes.yahoo.com/pipes/pipe.run?_id=99240a186b2099bc028d7d7e37c1f224&_render=csv
Related
I was wondering if it is possible to integrate the csv import into a powershell/bash script (even if that means doing something with curl or friends). Essentially, what is achieved by the clicks on "Choose file" and "CSV Import" in Ranorex Studio - just "script style".
I couldn't find anything in the docs or here...
Thanks !
Yes, this is possible.
See this documentation topic:
https://ravendb.net/docs/article-page/4.0/csharp/client-api/how-to/integrate-with-excel
Basically, you generate a URL and instead of using Excel to fetch it, you use curl or something similar.
I've never worked with web pages before and I'd like to know how best to automate the following through programming/scripting:
go to http://financials.morningstar.com/ratios/r.html?t=GMCR®ion=USA&culture=en_US
invoke the 'Export to CSV' button near the top right
save this file into local directory
parse file
Part 4 doesn't need to use the same language as for 1-3 but ideally I would like to do everything in one shot using one language.
I noticed that if I hover my mouse over the button it says: javascript:exportKeyStat2CSV(); Is this a java function I could call somehow?
Any suggestions are appreciated.
It's a JavaScript function, which is not Java!
At first glance, this may seem like you need to execute Javascript to get it done, but if you look at the source of the document, you can see the function is simply implemented like this:
function exportKeyStat2CSV(){
var orderby = SRT_keyStuts.getOrderFromCookie("order");
var urlstr = "//financials.morningstar.com/ajax/exportKR2CSV.html?&callback=?&t=XNAS:GMCR®ion=usa&culture=en-US&cur=&order="+orderby;
document.location = urlstr;
}
So, it builds a url, which is completely fixed, except the order by part, which is taken from a cookie. Then it simply navigates to that url by setting document.location. A small test shows you even get a csv file if you leave the order by part empty, so probably, you can just download the CSV from the base url that is in the code.
Downloading can be done using various tools, for instance WGet for Windows. See SuperUser for more possibilities. Anyway, 'step 1 to 3' is actually just a single command.
After that, you just need to parse the file. Parsing CSV files can be done using batch, and there are several examples available. I won't get into details, since you didn't provide any in your question.
PS. I'd check their terms of use before you actually implement this.
The button directs me to this link:
http://financials.morningstar.com/ajax/exportKR2CSV.html?&callback=?&t=XNAS:GMCR®ion=usa&culture=en-US&cur=&order=asc
You could use the Python 3 module urllib and fetch the file, save it using the os or shutil modules, then parse it using one of the many CSV parsing modules, or by making your own.
There are various utilities that allow you to convert an SQLite file to HTML format. What I am looking for is a script that would let you do this, in perl or something maybe? How would I go about finding / doing this?
Thank you :)
Are you talking about dynamic generated pages? In that case just use a while loop that gets content from the database and presents them in a table.
If you just want to export it to html once, you can use export as an excel stylesheet. From excel you have the option to 'save as html'.
Hey all,
I have an array collection of strings and integers (which I have displayed in a data grid) and I am wondering if it is possible to export the array collection into an html table? or even a text file for the user to download
I found some pages that had an export to .xls files but I want to stray away from that for now.
Thanks in advance!
Yes, you can export a DataGrid to an HTML table or a text file.
But you'll have to write your own conversion routine to do so. If you want the user to download a file, you'll most likely need to send the data back to the server and have that server process it; then send the user a download link.
I've created a bunch of views in a database and I'd like to export them to pdf. However phpmyadmin lets me only put a title on each page and it's very limited to how i can layout the output.
does anybody have some recommendations of software/scripts they used?
tcpdf is a PHP class for generating pdf documents. They have many example scripts.
There are a fantastillion ways to do this, some ideas:
export csv, import it to your favorite spreadsheet editor, format it, get the pdf using a pdf printer.
export xml, process it using xsl-fo to produce the output you want ( hacking required, fun )
export html ( should work? ), put a css on top optimized for print layout, pdf-printer.
Usually, I write up a script to pull info from a database, then generate a .csv, attach it to an email and send it on its way. Most scripts with support for mySQL can do that and they also go as far as generate a .pdf file with the appropriate formatting (in my case, I use Ruby, so I could have used Prawn to generate a PDF - I just choose not to as of this time).