Skip to content

Commit 97d03a5

Browse files
committed
Basic functionality finised. Now showing the cover and torrent's URL of each serie
1 parent 028b4de commit 97d03a5

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.pyc
2+
*~

Diff for: prototype.py renamed to mt_scrapper.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
from flask import Flask
2-
from flask import request
3-
from flask import render_template
1+
from flask import Flask, request, render_template
2+
import string
43
import requests
54
from bs4 import BeautifulSoup
65

@@ -9,7 +8,8 @@
98
@app.route("/")
109
def hello():
1110
return render_template('home.html',
12-
section="Prototype - Inicio")
11+
section="Prototype - Inicio",
12+
string=string)
1313

1414

1515
@app.route('/serie/list/<letter>')

Diff for: templates/home.html

+6
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66

77
{% block content %}
88
<h1>{{ section }}</h1>
9+
10+
<ul>
11+
{% for l in string.lowercase %}
12+
<li><a href="/serie/list/{{ l }}">Letra {{ l }}</a></li>
13+
{% endfor %}
14+
</ul>
915
{% endblock %}

0 commit comments

Comments
 (0)