User Tools

Site Tools


task_boiler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
task_boiler [2023/05/21 02:01] – [See also] rajutask_boiler [2024/01/22 22:59] – [Issue] raju
Line 4: Line 4:
 Start the first heading with "=====" Start the first heading with "====="
  
-===== conda environment file to install different packages from different channels ==== +===== blocked by barrons ===== 
- +==== Issue ==== 
-==== Background ==== +barrons.com is giving the following error.
- +
-yfinance library is the easiest and fastest way to download historical stock pricesAsof 2023-05-20, it is not available in the defaults channelBut is available in the conda-forge channel. +
- +
-==== Task ==== +
- +
-The goal here is to pull the yfinance package from conda-forge but everything else from the defaults channel. +
- +
-==== Solution ==== +
 <code> <code>
- % cat env_test_yfinance.yml | stuff.py +You have been blocked.
-name: test_yfinance +
-channels: +
-  - defaults +
-dependencies: +
-  - python=3.11 +
-  - conda-forge::yfinance +
-</code>+
  
-where stuff.py is a python script to strip out the comments. It can be downloaded from https://github.com/KamarajuKusumanchi/rutils/blob/master/python3/stuff.py+Why? 
 +Something about the behaviour of the browser has caught our 
 +attention.
  
-Create the environment+There are various possible explanations for this: 
 +* You are browsing and clicking at a speed much faster than 
 +  expected of a human being. 
 +* Something is preventing JavaScript from working on your 
 +  computer. 
 +* There is a robot on the same network (IP WW.XX.YY.ZZ) as you.
  
-<code> +Having problems accessing the site? Submit feedback. 
- % conda env create -f ./env_test_yfinance.yml+ID: a-b-c-d-e
 </code> </code>
  
-==== Evidence ==== +==== Solution ==== 
-yfinance is downloaded from conda-forge. +Click on the extensions button in the top right 
-<code> +-> Bypass Paywalls Clean -> settings button -> Options 
- % conda list -n test_yfinance | grep conda-forge +-> scroll down to "BPC settings" section 
-multitasking              0.0.9              pyhd8ed1ab_0    conda-forge +-> check "Barron'no Googlebot (http error 500)option 
-yfinance                  0.2.18             pyhd8ed1ab_0    conda-forge +-> Save
-</code> +
- +
-python is downloaded from the defaults channel +
-<code> +
- % conda list -n test_yfinance | grep "python"      +
-python                    3.11.3               h7a1cb2a_0   +
-python-dateutil           2.8.2              pyhd3eb1b0_0 +
-</code>+
  
-==== See also ==== +==== System Information ==== 
-  * The above environment file can be downloaded from https://github.com/KamarajuKusumanchi/rutils/blob/master/python3/envs/env_test_yfinance.yml +  * bypass paywalls clean extension version3.5.2.1 (latest asof 2024-01-22) 
-  * I got the idea from https://stackoverflow.com/questions/58555389/set-the-channel-priority-in-conda-environment-yaml -> https://stackoverflow.com/a/65983247/6305733 +  * google chrome120.0.6099.200 
-  * The official documentation I could find on this feature is https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-file-manually \\<Todo:- See if you can find a better link afterwards.>+  * OSWindows 10 Enterprise
  
task_boiler.txt · Last modified: 2024/01/23 22:55 by raju