Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 8b8598d

Browse files
committed
v1.0.1 🐝
1 parent e138f25 commit 8b8598d

File tree

11 files changed

+19
-11
lines changed

11 files changed

+19
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# Bug's feed release! 🎉
1+
## 🐛 Bug fixes
2+
- Oxford scrapping
3+
- Firefox package
4+
5+
## 💬 Other
6+
- Version control improved
27

38
<!-- ## 🚀 Features
49
-

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ COPY . /api
66
WORKDIR /api
77

88
RUN apt update
9-
RUN apt install git firefox-esr=78.12.0esr-1~deb10u1 tor -y
9+
RUN apt install git tor -y
10+
11+
RUN apt install /api/bin/libevent-2.1-6_2.1.8-stable-4_amd64.deb
12+
RUN apt install /api/bin/libffi6_3.2.1-9_amd64.deb
13+
RUN apt install /api/bin/firefox-esr_78.13.0esr-1_deb10u1_amd64.deb -y
1014

1115
RUN pip install -r /api/requirements.txt
1216
RUN pip install --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Bug's feed is a docker containered <a href="https://pypi.org/project/Flask/">Fla
4949
Most of requests go through <a href="https://www.torproject.org/">Tor</a> and with a random user agent.
5050
</p>
5151

52-
> Except those to twitter, youtube and bugcrowd (this may change in the future).
52+
> Except those to twitter, youtube, oxford and bugcrowd (this may change in the future).
5353
5454
<p align="center">
5555
<img src="app/static/assets/img/Demo.gif" alt="Gif" width="700">

app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def get_saved():
269269

270270
@app.route("/api/configs/checkVersion", methods=["GET"])
271271
def checkVersion():
272-
return jsonify(str(feeds_service.github_version() == config.get("version")))
272+
return jsonify({"version": config.get("version"), "old":str(feeds_service.github_version() == config.get("version"))})
273273

274274
@app.route("/api/configs/checkInit", methods=["GET", "PUT"])
275275
def checkInit():

app/services/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "v1.0.0"
1+
version = "v1.0.1"
22
init = true
33
google = false
44
align = "text-start"

app/services/feeds.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,17 +537,15 @@ def nist():
537537
driver.quit()
538538
return papers
539539

540-
# puedes definir el User-Agent?
541540
def oxford():
542541
url = "https://academic.oup.com/cybersecurity/search-results?f_ContentType=Journal+Article&fl_SiteID=5188&page=1&sort=Date+%e2%80%93+Newest+First"
543542
papers = []
544543
logging.info("Scrapping Oxford papers")
545-
driver = get_driver()
544+
driver = get_driver(False)
546545
driver.set_script_timeout(60)
547546
try:
548-
driver.get(url)
549547
driver.get(url)
550-
WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.CLASS_NAME, "al-title")))
548+
WebDriverWait(driver, 30).until(EC.presence_of_element_located((By.CLASS_NAME, "al-title")))
551549
html = driver.find_element(By.ID, "ContentColumn").get_attribute("innerHTML")
552550
elements = BeautifulSoup(html, features="html.parser")
553551
for element in elements.find_all("div", {"class": "sr-list al-article-box al-normal clearfix"}):

app/static/assets/js/settings.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const currentMonth = new Date().getMonth();
66
//""7__/""7__/""7__/""7__/""7__/""7__/""7__/""7__/""7__/""7__/""7__/""7__/""7__/""7__/""7__/""7__/""7__/""7__/
77

88
$.get("/api/configs/checkVersion").done(function(data) {
9-
if (data != "True") {
9+
$("#version").html(data.version)
10+
if (data.old != "True") {
1011
$("#version").append(" <a href='https://github.com/PwnedShell/Bugs-feed/releases/latest' style='color:var(--red)' target='_blank' rel='noopener noreferrer'>New version available</a>")
1112
}
1213
})

app/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h1 class="navbar-brand mb-0">
6868
<img src="{{ url_for('static', filename='assets/img/icon/bug.png') }}" class="me-3" width="50" height="50">Bug's feed
6969
</h1>
7070
<div class="d-flex">
71-
<small id="version" class="mt-2 me-3 text-muted">1.0.0 (alpha)</small>
71+
<small id="version" class="mt-2 me-3 text-muted"></small>
7272
<a href="#" class="configuration me-3 mt-1" data-bs-toggle="modal" data-bs-target="#config_modal">
7373
<img src="{{ url_for('static', filename='assets/img/configuration.svg') }}" width="25" height="25">
7474
</a>
53.3 MB
Binary file not shown.
173 KB
Binary file not shown.

0 commit comments

Comments
 (0)