2008-06-26 14:36:58 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>Scrapy - an opensource screen scraping framework for python</h1>
|
|
|
|
|
|
|
|
{% load link_tags %}
|
|
|
|
{% load_links "nav-links" as "nav_links" %}
|
|
|
|
|
|
|
|
{% if nav_links %}
|
|
|
|
<ul id="navigation">
|
|
|
|
{% for link in nav_links %}
|
|
|
|
<li{% if forloop.last %} class="last"{% endif %}><a href="{{ link.address }}">{{ link.text }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
<div id="left-column">
|
|
|
|
{% block main-content %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="right-column">
|
|
|
|
{% load download_tags %}
|
|
|
|
{% load_download_links as "download_links" %}
|
|
|
|
|
|
|
|
{% if download_links %}
|
|
|
|
<div class="box download">
|
|
|
|
<h3>Download Scrapy</h3>
|
|
|
|
|
|
|
|
{% for link in download_links %}
|
|
|
|
<p>{{ link.description }} <a href="{{ link.address }}" class="download">{{ link.text }}</a></p>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<h3>Scrapy Weblog</h3>
|
2008-06-27 02:40:11 +00:00
|
|
|
{% load lastblogentry %}
|
|
|
|
{% get_latest_blog_entries 2 as entries %}
|
2008-06-26 14:36:58 +00:00
|
|
|
|
2008-06-27 02:40:11 +00:00
|
|
|
{% for entry in entries %}
|
|
|
|
<div class="post{% if forloop.last %} last{% endif %}">
|
|
|
|
<h4><a href="{{ entry.get_absolute_url }}">{{ entry.headline }}</a></h4>
|
|
|
|
<p class="author">by {{ entry.author }} on {{ entry.pub_date|date:"M d, Y"}}</p>
|
|
|
|
<p class="abstract">{{ entry.summary }}</p>
|
|
|
|
<a href="{{ entry.get_absolute_url }}" class="more">» Read More</a>
|
2008-06-26 14:36:58 +00:00
|
|
|
</div>
|
2008-06-27 02:40:11 +00:00
|
|
|
{% endfor %}
|
2008-06-26 14:36:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block footer %}
|
|
|
|
{% load_links "footer-links" as "footer_links" %}
|
|
|
|
{% if footer_links %}
|
|
|
|
<ul>
|
|
|
|
<li style="border-right:none;">Scrapy : </li>
|
|
|
|
{% for link in footer_links %}
|
|
|
|
<li{% if forloop.last %} class="last"{% endif %}><a href="{{ link.address }}">{{ link.text }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|