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 01:31] 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 ==== 
 +barrons.com is giving the following error. 
 +<code> 
 +You have been blocked.
  
-Background:+Why? 
 +Something about the behaviour of the browser has caught our 
 +attention.
  
-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.+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.
  
-Goal: +Having problems accessing the site? Submit feedback
- +IDa-b-c-d-e
-The goal here is to pull the yfinance package from conda-forge but everything else from the defaults channel+
- +
-Solution: +
- +
-<code> +
- % cat env_test_yfinance.yml | stuff.py +
-name: test_yfinance +
-channels: +
-  defaults +
-dependencies: +
-  python=3.11 +
-  conda-forge::yfinance+
 </code> </code>
  
-  * where stuff.py is a python script to strip out the comments https://github.com/KamarajuKusumanchi/rutils/blob/master/python3/stuff.py +==== Solution ==== 
-  * The environment file can be downloaded from https://github.com/KamarajuKusumanchi/rutils/blob/master/python3/envs/env_test_yfinance.yml+Click on the extensions button in the top right 
 +-> Bypass Paywalls Clean -> settings button -> Options 
 +-> scroll down to "BPC settings" section 
 +-> check "Barron's - no Googlebot (http error 500)" option 
 +-> Save
  
-<code> +==== System Information ==== 
- % conda env create -f ./env_test_yfinance.yml +  * bypass paywalls clean extension version: 3.5.2.1 (latest asof 2024-01-22) 
-</code> +  * google chrome: 120.0.6099.200 
- +  * OS: Windows 10 Enterprise
-<code> +
- % conda list -n test_yfinance | grep conda-forge +
-multitasking              0.0.9              pyhd8ed1ab_0    conda-forge +
-yfinance                  0.2.18             pyhd8ed1ab_0    conda-forge +
-</code>+
  
task_boiler.txt · Last modified: 2024/01/23 22:55 by raju