Skip to content

Commit

Permalink
add lxml import for docs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shadawck committed Jun 17, 2020
1 parent e515c79 commit 4dcd225
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sphinx:

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.8
version: 3
install:
- requirements: docs/requirements.txt
- requirements: requirements.txt
5 changes: 3 additions & 2 deletions mitrecve/crawler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
Get the CVE from Mitre based on requested packages/keyword/CVE-ID
"""
import lxml.html as lh
from pprint import pprint
import json
import requests
from bs4 import BeautifulSoup
Expand All @@ -16,8 +18,7 @@
###### CVE MITRE API ######
###########################

import lxml.html as lh
from pprint import pprint


def get_main_page(package):
"""Main function to get cve
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
lxml
docopt
requests
beautifulsoup4

0 comments on commit 4dcd225

Please sign in to comment.