Skip to content

Commit

Permalink
update to python 3. revert to lld.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sirkuttin committed Aug 13, 2021
1 parent 3cbbee0 commit e1d9608
Show file tree
Hide file tree
Showing 9 changed files with 332 additions and 22,769 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:2-alpine
FROM python:3-alpine

WORKDIR /app

COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY Pipfile Pipfile.lock ./
RUN pipenv install

COPY config.py llcd.py ./
COPY config.py lld.py ./
RUN ls -la

CMD ["python", "./llcd.py"]
CMD ["pipenv", "run download"]
16 changes: 16 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
requests = "*"
beautifulsoup4 = "*"

[dev-packages]

[requires]
python_version = "3.8"

[scripts]
download = "python lld.py"
77 changes: 77 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 1 addition & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,7 @@ docker-compose up --build
First install the requirements:

```bash
pip install -r requirements.txt
```

If `pip` is not installed, run:

```bash
python get-pip.py
```

An updated version of `get-pip.py` can also be obtained by executing:

```bash
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
```

For more info, check [`this resource`](https://pip.pypa.io/en/stable/installing/)

Then execute the script:

```bash
python llcd.py
pipenv run download
```

### Outcome
Expand Down
2 changes: 2 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

USERNAME = ''
PASSWORD = ''
BASE_DOWNLOAD_PATH = '' #use "/" as separators
SUBS = False

COURSES = [
'it-security-foundations-core-concepts',
Expand Down
Loading

0 comments on commit e1d9608

Please sign in to comment.