Let us worry about your assignment instead!

We Helped With This Python Programming Assignment: Have A Similar One?

SOLVED
CategoryProgramming
SubjectPython
DifficultyUndergraduate
StatusSolved
More InfoPython Help
53181

Short Assignment Requirements

RSS aggregator-GUI with Html-Filter with keywords-input RSS address and output list-Login/logout through webpagei have already develop parts of the program, please continue with what i have done now. (please comment code)attachment is my code

Assignment Code


import feedparser
def __init__(self,title):
        print(title)

def getdata(url):
    ret = ""
    d=feedparser.parse(url)
    w=feedparser.parse(url).keys()
    print(w)
    for e in d.entries:
        title=e["title"]
        link=e["link"]
        ret += "<h3>"+title + "</h3>
<a href="+link+">This is a link</a>

"
    return ret






Assignment Code


from flask import Flask, request, render_template,redirect,url_for
from flask_sqlalchemy import SQLAlchemy
from Feeds import getdata
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI']= 'postgresql://postgres:1@localhost/project'
db=SQLAlchemy(app)

class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String(80), unique=True)
    email= db.Column(db.String(120),unique=True)

    def __init__(self,username,email):
        self.username = username
        self.email = email

    def __repr__(self):
        return '<User %r>' % self.username
@app.route("/")

@app.route("/add_user",methods=['get','post'])
def add_user():
    return render_template('add_user.html')

@app.route("/post_user",methods=['get','post'])
def post_user():
    user=User(request.form['username'],request.form['email'])
    db.session.add(user)
    db.session.commit()
    return redirect(url_for('add_user'))

@app.route('/data')
def data():
    ub= request.args.get('rss address')
    return

@app.route("/rss")
def rss_get():
    return render_template('rss.html')

def 
if "__main__" == __name__:
    app.run(debug=True)


Assignment Code



Customer Feedback

"Thanks for explanations after the assignment was already completed... Emily is such a nice tutor! "

Order #13073

Find Us On

soc fb soc insta


Paypal supported