From f8dd507cbc8c8af8a3878430f799e2ec20f668af Mon Sep 17 00:00:00 2001 From: hobojoe1848 Date: Thu, 26 Oct 2017 21:33:33 +1100 Subject: [PATCH 01/18] Added bcc functionality, created data.txt file and correctly referenced it in the main script --- 011/data.txt | 2 ++ 011/generic_emailer.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 011/data.txt diff --git a/011/data.txt b/011/data.txt new file mode 100644 index 0000000..0a50cb4 --- /dev/null +++ b/011/data.txt @@ -0,0 +1,2 @@ +This is the text that will be emailed out. +The main emailer script should point to this file (or another data file of your choice). \ No newline at end of file diff --git a/011/generic_emailer.py b/011/generic_emailer.py index 6e73c21..de6fc80 100644 --- a/011/generic_emailer.py +++ b/011/generic_emailer.py @@ -9,7 +9,7 @@ from email_list import EMAILS -DATA_FILE = 'scraped_data_file' +DATA_FILE = 'data.txt' from_addr = 'your_email@gmail.com' to_addr = 'some_recipient@gmail.com' bcc = EMAILS From 53470134ee284d81b40d1e211fbf9f81027e3ba3 Mon Sep 17 00:00:00 2001 From: PyBites Date: Sat, 31 Mar 2018 17:30:50 +0200 Subject: [PATCH 02/18] Update README.md --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dd75f21..9618e52 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,13 @@ -## PyBites 100 Days Of Code Challenge +## PyBites 100 Days Of Code Challenge (Mar 30, 2017 - Jul 07, 2017) -* See our article: [100 Days of PyBites, 100 Days of Code](https://pybit.es/special-100days). +* See our review article: [100 Days of PyBites, 100 Days of Code](https://pybit.es/special-100days). -* We will update this [progress log](LOG.md) as we go and [tweet](https://twitter.com/pybites) with the #100DaysOfCode hashtag. +* See all we coded in our [progress log](LOG.md) which we [tweeted out](https://twitter.com/pybites) daily with the #100DaysOfCode hashtag. -* Inspiration by [Free Code Camp / Alexander Kallaway](https://medium.freecodecamp.com/join-the-100daysofcode-556ddb4579e4#.qmiel1bhd). +* After doing the challenge we spoke about our experiece on the [Talk Python podcast](https://talkpython.fm/episodes/show/140/level-up-your-python-with-100daysofcode-challenge) + +* After this podcast we collaborated with Talk Python on a dedicated course, released in March 2018: [100 Days of Code in Python](talkpython.fm/100days?s=pybites). + +-- + +* Original 100 Days idea by [Alexander Kallaway](https://medium.freecodecamp.org/join-the-100daysofcode-556ddb4579e4). From 1a6bd03f5547b3df59d227cb26692cd61f3fd864 Mon Sep 17 00:00:00 2001 From: Bob Belderbos Date: Wed, 25 Jul 2018 11:21:17 +0200 Subject: [PATCH 03/18] fix outdated dependency --- 016/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/016/requirements.txt b/016/requirements.txt index 51f1ad1..01175a3 100644 --- a/016/requirements.txt +++ b/016/requirements.txt @@ -3,7 +3,7 @@ cffi==1.9.1 cryptography==1.8.1 idna==2.5 packaging==16.8 -paramiko==2.1.2 +paramiko==2.1.5 pyasn1==0.2.3 pycparser==2.17 pyparsing==2.2.0 From 38af116e66488d371dc0bfe1a4b09243c715eecf Mon Sep 17 00:00:00 2001 From: PyBites Date: Wed, 8 Aug 2018 19:57:21 +0200 Subject: [PATCH 04/18] Update requirements.txt security vulnerability in one of the dependencies --- 094/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/094/requirements.txt b/094/requirements.txt index bc4dceb..21e4783 100644 --- a/094/requirements.txt +++ b/094/requirements.txt @@ -1,7 +1,7 @@ asn1crypto==0.22.0 bcrypt==3.1.3 cffi==1.10.0 -cryptography==1.9 +cryptography==2.3 idna==2.5 paramiko==2.2.1 pyasn1==0.2.3 From 965cb3e14788e916cf1212aaa3c6bfb9510f7ef1 Mon Sep 17 00:00:00 2001 From: Bob Belderbos Date: Wed, 8 Aug 2018 20:05:21 +0200 Subject: [PATCH 05/18] Update requirements.txt Known high severity security vulnerability detected in paramiko >= 2.2.0, < 2.2.3 defined in requirements.txt. requirements.txt update suggested: paramiko ~> 2.2.3. --- 094/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/094/requirements.txt b/094/requirements.txt index 21e4783..a89a120 100644 --- a/094/requirements.txt +++ b/094/requirements.txt @@ -3,7 +3,7 @@ bcrypt==3.1.3 cffi==1.10.0 cryptography==2.3 idna==2.5 -paramiko==2.2.1 +paramiko==2.2.3 pyasn1==0.2.3 pycparser==2.17 PyNaCl==1.1.2 From 9b1b17933f483a734df4e775859a9978dd066d56 Mon Sep 17 00:00:00 2001 From: Sherif Date: Mon, 17 Sep 2018 20:44:55 +0200 Subject: [PATCH 06/18] changing "-" to "_" --- 051/requests_login.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/051/requests_login.py b/051/requests_login.py index a07c382..9a188f8 100644 --- a/051/requests_login.py +++ b/051/requests_login.py @@ -5,10 +5,10 @@ import requests #This URL will be the URL that your login form points to with the "action" tag. -POST-LOGIN-URL = 'https://my.freecycle.org/login' +POST_LOGIN_URL = 'https://my.freecycle.org/login' #This URL is the page you actually want to pull down with requests. -REQUEST-URL = 'https://my.freecycle.org/home/posts' +REQUEST_URL = 'https://my.freecycle.org/home/posts' #username-input-name is the "name" tag associated with the username input field of the login form. @@ -19,6 +19,6 @@ } with requests.Session() as session: - post = session.post(POST-LOGIN-URL, data=payload) - r = session.get(REQUEST-URL) + post = session.post(POST_LOGIN_URL, data=payload) + r = session.get(REQUEST_URL) print(r.text) #or whatever else you want to do with the request data! From e6d98989d3b01eccc736642690211a6a9573f809 Mon Sep 17 00:00:00 2001 From: Bob Belderbos Date: Tue, 18 Sep 2018 01:21:21 +0200 Subject: [PATCH 07/18] amz affil script: support for different amz domains / countries --- 022/genlink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/022/genlink.py b/022/genlink.py index 153328e..07999a7 100644 --- a/022/genlink.py +++ b/022/genlink.py @@ -9,7 +9,7 @@ LINK = 'http://www.amazon.com/dp/{}/?tag={}' # https://pybit.es/mastering-regex.html URL = re.compile(r""" - ^https://(?:www.)?amazon.com/ + ^https://(?:www.)?amazon.[^/]+?/ [^/]+/ dp/ (?P[^/]+) # the numberic asin follows the dp/ From ebe46da05b6f8b207a1868ddcb7aac3f98a8b6aa Mon Sep 17 00:00:00 2001 From: PyBites Date: Fri, 12 Oct 2018 10:32:03 +0200 Subject: [PATCH 08/18] Update requirements.txt upgrade paramiko --- 094/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/094/requirements.txt b/094/requirements.txt index a89a120..c4002c1 100644 --- a/094/requirements.txt +++ b/094/requirements.txt @@ -3,7 +3,7 @@ bcrypt==3.1.3 cffi==1.10.0 cryptography==2.3 idna==2.5 -paramiko==2.2.3 +paramiko pyasn1==0.2.3 pycparser==2.17 PyNaCl==1.1.2 From b588c211cb24cbe5b67fe4283dcb633fad905ff3 Mon Sep 17 00:00:00 2001 From: PyBites Date: Fri, 12 Oct 2018 10:32:18 +0200 Subject: [PATCH 09/18] Update requirements.txt upgrade paramiko --- 016/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/016/requirements.txt b/016/requirements.txt index 01175a3..4d7747f 100644 --- a/016/requirements.txt +++ b/016/requirements.txt @@ -3,7 +3,7 @@ cffi==1.9.1 cryptography==1.8.1 idna==2.5 packaging==16.8 -paramiko==2.1.5 +paramiko pyasn1==0.2.3 pycparser==2.17 pyparsing==2.2.0 From 0d9c22f7bb91b86dca2da7b884aa5ff9ea41bf4f Mon Sep 17 00:00:00 2001 From: PyBites Date: Fri, 12 Oct 2018 10:33:08 +0200 Subject: [PATCH 10/18] Update requirements.txt upgrade Flask --- 032/requirements.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/032/requirements.txt b/032/requirements.txt index 28a0761..8be1c9f 100644 --- a/032/requirements.txt +++ b/032/requirements.txt @@ -1,7 +1,3 @@ -click==6.7 -Flask==0.12.1 -Flask-JSGlue==0.3.1 -itsdangerous==0.24 -Jinja2==2.9.6 -MarkupSafe==1.0 -Werkzeug==0.12.1 +click +Flask +Flask-JSGlue From 8633c6a19badca23618e11051e4bc3ec42863853 Mon Sep 17 00:00:00 2001 From: PyBites Date: Fri, 12 Oct 2018 10:33:31 +0200 Subject: [PATCH 11/18] Update requirements.txt upgrade Flask --- 013/requirements.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/013/requirements.txt b/013/requirements.txt index 168c40b..9437de8 100644 --- a/013/requirements.txt +++ b/013/requirements.txt @@ -1,8 +1,4 @@ -click==6.7 -Flask==0.12.1 -itsdangerous==0.24 -Jinja2==2.9.6 -MarkupSafe==1.0 -pytz==2017.2 -requests==2.13.0 -Werkzeug==0.12.1 +click +Flask +pytz +requests From 115e0c644c9f0138e5af6240972f2228a5aa02cc Mon Sep 17 00:00:00 2001 From: Bob Belderbos Date: Sun, 17 Feb 2019 12:21:57 +0100 Subject: [PATCH 12/18] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9618e52..a2a6365 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ ## PyBites 100 Days Of Code Challenge (Mar 30, 2017 - Jul 07, 2017) -* See our review article: [100 Days of PyBites, 100 Days of Code](https://pybit.es/special-100days). +* Kicking off the challenge: [100 Days of PyBites, 100 Days of Code](https://pybit.es/special-100days). + +* Our review article at the end: [200 Days of PyBites, 100 Days of Code and our Next Project](https://pybit.es/special-100days-of-code.html). * See all we coded in our [progress log](LOG.md) which we [tweeted out](https://twitter.com/pybites) daily with the #100DaysOfCode hashtag. From fbe634457e9c73241c5c1e0842bb4b0b368d5f49 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2019 14:35:29 +0000 Subject: [PATCH 13/18] Bump werkzeug from 0.12.2 to 0.15.3 in /099 Bumps [werkzeug](https://github.com/pallets/werkzeug) from 0.12.2 to 0.15.3. - [Release notes](https://github.com/pallets/werkzeug/releases) - [Changelog](https://github.com/pallets/werkzeug/blob/master/CHANGES.rst) - [Commits](https://github.com/pallets/werkzeug/compare/0.12.2...0.15.3) Signed-off-by: dependabot[bot] --- 099/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/099/requirements.txt b/099/requirements.txt index 6aee249..a62870b 100644 --- a/099/requirements.txt +++ b/099/requirements.txt @@ -3,4 +3,4 @@ Flask==0.12.2 itsdangerous==0.24 Jinja2==2.9.6 MarkupSafe==1.0 -Werkzeug==0.12.2 +Werkzeug==0.15.3 From 4699fdfefbdc54517ea3440424157acf1c2a25a2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2019 20:40:33 +0000 Subject: [PATCH 14/18] Bump pillow from 4.1.1 to 6.2.0 in /074 Bumps [pillow](https://github.com/python-pillow/Pillow) from 4.1.1 to 6.2.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/4.1.1...6.2.0) Signed-off-by: dependabot[bot] --- 074/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/074/requirements.txt b/074/requirements.txt index e61d74e..dbf4f3a 100644 --- a/074/requirements.txt +++ b/074/requirements.txt @@ -2,6 +2,6 @@ certifi==2017.4.17 chardet==3.0.4 idna==2.5 olefile==0.44 -Pillow==4.1.1 +Pillow==6.2.0 requests==2.17.3 urllib3==1.21.1 From 4c1440bf9b70a1200c877289b61a0b07a7b1c6a6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2019 20:55:50 +0000 Subject: [PATCH 15/18] Bump pillow from 4.0.0 to 6.2.0 in /003 Bumps [pillow](https://github.com/python-pillow/Pillow) from 4.0.0 to 6.2.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/4.0.0...6.2.0) Signed-off-by: dependabot[bot] --- 003/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/003/requirements.txt b/003/requirements.txt index c40dd4a..c6aef4f 100644 --- a/003/requirements.txt +++ b/003/requirements.txt @@ -1,4 +1,4 @@ imageio==2.1.2 numpy==1.12.1 olefile==0.44 -Pillow==4.0.0 +Pillow==6.2.0 From a0f70ae6691db08fcb39bf055551b46a96706a56 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Jan 2021 22:16:34 +0000 Subject: [PATCH 16/18] Bump lxml from 3.8.0 to 4.6.2 in /070 Bumps [lxml](https://github.com/lxml/lxml) from 3.8.0 to 4.6.2. - [Release notes](https://github.com/lxml/lxml/releases) - [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt) - [Commits](https://github.com/lxml/lxml/compare/lxml-3.8.0...lxml-4.6.2) Signed-off-by: dependabot[bot] --- 070/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/070/requirements.txt b/070/requirements.txt index 8d822a4..0141fdc 100644 --- a/070/requirements.txt +++ b/070/requirements.txt @@ -1,4 +1,4 @@ html5lib==0.999999999 ipykernel==4.6.1 -lxml==3.8.0 +lxml==4.6.2 pandas==0.20.2 From 7a91ddde0f926f86ff69e99a3acf6a660ceb7324 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Jun 2021 21:52:25 +0000 Subject: [PATCH 17/18] Bump urllib3 from 1.21.1 to 1.26.5 in /076 Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.21.1 to 1.26.5. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](https://github.com/urllib3/urllib3/compare/1.21.1...1.26.5) --- updated-dependencies: - dependency-name: urllib3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- 076/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/076/requirements.txt b/076/requirements.txt index 13b2383..24f62f8 100644 --- a/076/requirements.txt +++ b/076/requirements.txt @@ -4,4 +4,4 @@ certifi==2017.4.17 chardet==3.0.4 idna==2.5 requests==2.17.3 -urllib3==1.21.1 +urllib3==1.26.5 From 9b7c42346d0fcb1ba3510877c845de4cf53ce19f Mon Sep 17 00:00:00 2001 From: Bob Belderbos Date: Tue, 18 Mar 2025 19:12:18 +0100 Subject: [PATCH 18/18] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a2a6365..629ea5d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ ## PyBites 100 Days Of Code Challenge (Mar 30, 2017 - Jul 07, 2017) -* Kicking off the challenge: [100 Days of PyBites, 100 Days of Code](https://pybit.es/special-100days). +* Kicking off the challenge: [100 Days of PyBites, 100 Days of Code](https://pybit.es/articles/special-100days/). -* Our review article at the end: [200 Days of PyBites, 100 Days of Code and our Next Project](https://pybit.es/special-100days-of-code.html). +* Our review article at the end: [200 Days of PyBites, 100 Days of Code and our Next Project](https://pybit.es/articles/special-100days-of-code). * See all we coded in our [progress log](LOG.md) which we [tweeted out](https://twitter.com/pybites) daily with the #100DaysOfCode hashtag.