simmeringratchet / LDSGeneralConferenceDownloader

A script to download General Conference talks for offline listneing
MIT License
13 stars 5 forks source link

Line 36 syntax error. #2

Open Brainsan opened 4 years ago

Brainsan commented 4 years ago

Unfortunately, I know nothing about Python, but I get this when trying to run your tool:

python gen_conf_downloader.py File "gen_conf_downloader.py", line 36 ALL_CONFERENCES_URL = f'{LDS_ORG_URL}/general-conference/conferences' ^ SyntaxError: invalid syntax

Though the caret is at the single quote at the end of the line.

GatorQue commented 4 years ago

Do you know what version of Python you are using? I'm using 3.8 (32bit). I did the following to set things up: 1) Download and install Python 3.8 and ensure it gets added to your path 2) Download git if you haven't already done so and install it and ensure it gets added to your path 3) Clone my forked copy of the repository (unless my PR has been approved and merged): git git@github.com:GatorQue/LDSGeneralConferenceDownloader.git 4) Enter the LDSGeneralConferenceDownloader directory 5) Use my feature branch (unless it been merged to master already) git checkout feature/Fix-url-and-add-better-ordering-with-numbers 6) Make sure virtual environment is installed: pip install virtualenv 7) Create a virtual environment virtualenv env 8) Activate virtual environment env\Scripts\activate.bat 9) Install project dependencies pip install -r requirements.txt 10) Run the program python gen_conf_downloader.py

Brainsan commented 4 years ago

Thanks, it was an old version of Python, 3.4.

It runs now, but I'm getting this error:

Problem with http request (https://www.lds.org/languages: HTTP Error 403: ForbiddenThe given language (eng) is not available. Please choose one of the following:

There is nothing following. The error is the same whether or not I specify a language, and I've tried a few.

GatorQue commented 4 years ago

My changes in pull request #3 address that error. There are two main causes:

Brainsan commented 4 years ago

Thanks, it works great now. I appreciate your work and help!

GatorQue commented 4 years ago

Great! I'm glad to hear it!