fix: update scraper settings and modify scrape form to use POST method
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<button type="button" id="reset-filters">Reset</button>
|
||||
</form>
|
||||
{% if session.get('username') %}
|
||||
<form id="scrape-form" method="GET" action="/scrape">
|
||||
<form id="scrape-form" method="POST" action="{{ url_for('scrape') }}">
|
||||
<button type="submit">Scrape Jobs</button>
|
||||
<span id="scrape-info"></span>
|
||||
</form>
|
||||
@@ -44,11 +44,13 @@
|
||||
<div id="jobs">
|
||||
{% for job in jobs %}
|
||||
<div class="job">
|
||||
<!--<h3><a href="{{ job['url'] }}" target="_blank">{{ job['title'] }}</a></h3>-->
|
||||
<h3><a href="{{ url_for('job_by_id', job_id=job['id']) }}" target="_blank">{{ job['title'] }}</a></h3>
|
||||
<p class="job-posted-time">{{ job['posted_time'] }}</p>
|
||||
<span class="job-region region-{{ job['region'] }}">{{ job['region'] }}</span>
|
||||
<span class="job-keyword keyword-{{ job['keyword']|replace(' ', '')|lower }}">{{ job['keyword'] }}</span>
|
||||
<button class="favorite-button" data-job-id="{{ job['id'] }}" data-username="{{ session.get('username', '') }}">
|
||||
{% if job['is_favorite'] %}★{% else %}☆{% endif %}
|
||||
</button>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user