<commit_before><?php
/* rss2csv.php - convert RSS feed to CSV format

   Created by <NAME> <<EMAIL>>
   http://scooterlabs.com/hacks/rss2csv.php
*/
if ($_SERVER['REQUEST_METHOD'] != 'GET') {
    header ('Allow: GET');
    header ('HTTP/1.0 405 Method Not Allowed');
    exit();
}

include ("./rss2csv.inc");

$url = isset($_GET['url']) ? $_GET['url'] : '';
$convert = ($url <> '') ? true : false;

if ($convert) {
    // fetch RSS content using YQL and output as CSV
    error_log (date(DATE_ISO8601) . "  $url\n",3,"./log/rss2csv.log");
    fetchRSSandOutputCSV ($url);
    exit();
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
    <title>RSS to CSV Converter - Scooter Labs</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.0r4/build/reset-fonts-grids/reset-fonts-grids.css&amp;2.8.0r4/build/base/base-min.css">
    <style>
        h1 { font-size: 2em; margin: 0.5em 0.5em 0.5em 0; }
        body { overflow: auto; }
    </style>
</head>
<body>
<div id="doc3" class="yui-t7">
<div id="hd"><h1>RSS to CSV Converter</h1></div>
<div id="bd">
<div class="yui-g">
<p>This is a simple script to convert RSS feeds into CSV format, suitable for importing into Excel.</p>
<form id="search-form" action="rss2csv.php" method="get">
  <fieldset>
    <label for="query">Enter URL of RSS feed:</label>
    <input type="text" id="query" name="url" size="50" value="<?php echo $url; ?>" />
    <button type="submit">Submit</button>
  </fieldset><commit_msg>add mobile <viewport> for those who may access from mobile<commit_after><?php
/* rss2csv.php - convert RSS feed to CSV format

   Created by <NAME> <<EMAIL> cant<EMAIL>>
   http://scooterlabs.com/hacks/rss2csv.php
*/
if ($_SERVER['REQUEST_METHOD'] != 'GET') {
    header ('Allow: GET');
    header ('HTTP/1.0 405 Method Not Allowed');
    exit();
}

include ("./rss2csv.inc");

$url = isset($_GET['url']) ? $_GET['url'] : '';
$convert = ($url <> '') ? true : false;

if ($convert) {
    // fetch RSS content using YQL and output as CSV
    error_log (date(DATE_ISO8601) . "  $url\n",3,"./log/rss2csv.log");
    fetchRSSandOutputCSV ($url);
    exit();
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
    <title>RSS to CSV Converter - Scooter Labs</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name=viewport content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.0r4/build/reset-fonts-grids/reset-fonts-grids.css&amp;2.8.0r4/build/base/base-min.css">
    <style>
        h1 { font-size: 2em; margin: 0.5em 0.5em 0.5em 0; }
        body { overflow: auto; }
    </style>
</head>
<body>
<div id="doc3" class="yui-t7">
<div id="hd"><h1>RSS to CSV Converter</h1></div>
<div id="bd">
<div class="yui-g">
<p>This is a simple script to convert RSS feeds into CSV format, suitable for importing into Excel.</p>
<form id="search-form" action="rss2csv.php" method="get">
  <fieldset>
    <label for="query">Enter URL of RSS feed:</label>
    <input type="text" id="query" name="url" size="50" value="<?php echo $url; ?>" />
    <button type="submit">Submit</button>
  </fieldset>
{'fraction_non_alphanumeric': 0.20067817509247843, 'fraction_numerical': 0.02435265104808878, 'mean_word_length': 3.8074074074074074, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 74, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6381790', 'n_tokens_mistral': 1265, 'n_tokens_neox': 1200, 'n_words': 287}