Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
def launch_fox_rss(): from flask import Flask import feedparser import threading import webbrowser from time import sleep app = Flask(__name__) def open_browser(): sleep(1.5) webbrowser.open_new_tab("http://127.0.0.1:5000") @app.route("/") def rss(): url = "https://moxie.foxnews.com/google-publisher/latest.xml" feed = feedparser.parse(url) items = feed.entries[:10] html = """
Fox News
Fox News
""" for i in items: html += f"""
{i.title}
{i.published if 'published' in i else ''}
""" html += "" return html threading.Thread(target=open_browser).start() app.run(port=5000, debug=True) launch_fox_rss()
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)