Content-type: text/html Downes.ca ~ Stephen's Web ~ Web Scraping with Perl & ChatGPT

Stephen Downes

Knowledge, Learning, Community

So as I've mentioned before, I use that ancient language called Perl for most of my web scripting. As it turns out, one of the advantages of using an old language is that chatGPT performs very well when using it. Following the examples in this article, and then branching out on my own, I tried a number of scripts, all of which were executed flawlessly. Want 'feed to JSON'? Ask chatGPT to "write a Perl script to harvest an RSS feed from an SSL-secured site and convert the results into JSON format." Then if you want to output the results using Javascript, ask it to "take the results of this and write Javascript to display the feed on a web page as html." Voila! Feed2JS in about three minutes.

Today: 0 Total: 20 [Direct link] [Share]


Stephen Downes Stephen Downes, Casselman, Canada
stephen@downes.ca

Copyright 2024
Last Updated: Dec 22, 2024 12:17 a.m.

Canadian Flag Creative Commons License.

Force:yes