Comments (3)
Sorry if I asked stupid qustion. I am a user only.
I solved the issue on Google Colab by changing the requirement to:
certifi==2020.12.5
chardet==3.0.2
configparser==5.0.1
idna==2.10
lxml==4.6.2
multitasking==0.0.9
numpy==1.19.5
pandas==1.1.5
praw==7.0.0
prawcore==1.5.0
python-dateutil==2.8.1
python-dotenv==0.15.0
pytz==2021.1
requests==2.23.0
six==1.15.0
tqdm==4.56.0
update-checker==0.18.0
urllib3==1.24.3
websocket-client==0.57.0
yfinance==0.1.55
flask==1.1.2
flask_cors==3.0.10
folium==0.2.1
!pip install -r requirements.txt
Requirement already satisfied: certifi==2020.12.5 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 1)) (2020.12.5)
Requirement already satisfied: chardet==3.0.2 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 2)) (3.0.2)
Requirement already satisfied: configparser==5.0.1 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 3)) (5.0.1)
Requirement already satisfied: idna==2.10 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 4)) (2.10)
Requirement already satisfied: lxml==4.6.2 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 5)) (4.6.2)
Requirement already satisfied: multitasking==0.0.9 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 6)) (0.0.9)
Requirement already satisfied: numpy==1.19.5 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 7)) (1.19.5)
Requirement already satisfied: pandas==1.1.5 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 8)) (1.1.5)
Requirement already satisfied: praw==7.0.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 9)) (7.0.0)
Requirement already satisfied: prawcore==1.5.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 10)) (1.5.0)
Requirement already satisfied: python-dateutil==2.8.1 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 11)) (2.8.1)
Requirement already satisfied: python-dotenv==0.15.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 12)) (0.15.0)
Requirement already satisfied: pytz==2021.1 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 13)) (2021.1)
Requirement already satisfied: requests==2.23.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 14)) (2.23.0)
Requirement already satisfied: six==1.15.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 15)) (1.15.0)
Requirement already satisfied: tqdm==4.56.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 16)) (4.56.0)
Requirement already satisfied: update-checker==0.18.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 17)) (0.18.0)
Requirement already satisfied: urllib3==1.24.3 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 18)) (1.24.3)
Requirement already satisfied: websocket-client==0.57.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 19)) (0.57.0)
Requirement already satisfied: yfinance==0.1.55 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 20)) (0.1.55)
Requirement already satisfied: flask==1.1.2 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 21)) (1.1.2)
Requirement already satisfied: flask_cors==3.0.10 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 22)) (3.0.10)
Requirement already satisfied: folium==0.2.1 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 23)) (0.2.1)
Requirement already satisfied: Werkzeug>=0.15 in /usr/local/lib/python3.6/dist-packages (from flask==1.1.2->-r requirements.txt (line 21)) (1.0.1)
Requirement already satisfied: itsdangerous>=0.24 in /usr/local/lib/python3.6/dist-packages (from flask==1.1.2->-r requirements.txt (line 21)) (1.1.0)
Requirement already satisfied: Jinja2>=2.10.1 in /usr/local/lib/python3.6/dist-packages (from flask==1.1.2->-r requirements.txt (line 21)) (2.11.3)
Requirement already satisfied: click>=5.1 in /usr/local/lib/python3.6/dist-packages (from flask==1.1.2->-r requirements.txt (line 21)) (7.1.2)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.6/dist-packages (from Jinja2>=2.10.1->flask==1.1.2->-r requirements.txt (line 21)) (1.1.1)
But,
**I have the new issue. Any idea how to fix?
!python ticker_counts.py**
Version 7.0.0 of praw is outdated. Version 7.1.4 was released 2 days ago.
Selecting relevant data from webscraper: 0% 0/2000 [00:00<?, ?it/s]
Traceback (most recent call last):
File "ticker_counts.py", line 45, in
post.total_awards_received] for post in tqdm(new_bets, desc="Selecting relevant data from webscraper", total=WEBSCRAPER_LIMIT)]
File "ticker_counts.py", line 40, in
posts = [[post.id,
File "/usr/local/lib/python3.6/dist-packages/tqdm/std.py", line 1166, in iter
for obj in iterable:
File "/usr/local/lib/python3.6/dist-packages/praw/models/listing/generator.py", line 61, in next
self._next_batch()
File "/usr/local/lib/python3.6/dist-packages/praw/models/listing/generator.py", line 71, in _next_batch
self._listing = self._reddit.get(self.url, params=self.params)
File "/usr/local/lib/python3.6/dist-packages/praw/reddit.py", line 490, in get
return self._objectify_request(method="GET", params=params, path=path)
File "/usr/local/lib/python3.6/dist-packages/praw/reddit.py", line 574, in _objectify_request
data=data, files=files, method=method, params=params, path=path
File "/usr/local/lib/python3.6/dist-packages/praw/reddit.py", line 732, in request
timeout=self.config.timeout,
File "/usr/local/lib/python3.6/dist-packages/prawcore/sessions.py", line 339, in request
url=url,
File "/usr/local/lib/python3.6/dist-packages/prawcore/sessions.py", line 235, in _request_with_retries
url,
File "/usr/local/lib/python3.6/dist-packages/prawcore/sessions.py", line 195, in _make_request
timeout=timeout,
File "/usr/local/lib/python3.6/dist-packages/prawcore/rate_limit.py", line 35, in call
kwargs["headers"] = set_header_callback()
File "/usr/local/lib/python3.6/dist-packages/prawcore/sessions.py", line 282, in _set_header_callback
self._authorizer.refresh()
File "/usr/local/lib/python3.6/dist-packages/prawcore/auth.py", line 325, in refresh
self._request_token(grant_type="client_credentials")
File "/usr/local/lib/python3.6/dist-packages/prawcore/auth.py", line 153, in _request_token
response = self._authenticator._post(url, **data)
File "/usr/local/lib/python3.6/dist-packages/prawcore/auth.py", line 36, in _post
raise ResponseException(response)
prawcore.exceptions.ResponseException: received 401 HTTP response
from reddit-stock-trends.
prawcore.exceptions.ResponseException: received 401 HTTP response
This basically means your credentials are wrong. Did you create praw.ini
and add your credentials to it? I am also working on the requirements.txt
fix, it will be included in the next update
from reddit-stock-trends.
@AngelTiger90 you can reopen the issue if itβs still not fixed
from reddit-stock-trends.
Related Issues (20)
- Scrape catalysts from DDs HOT 1
- Turn this into a local module that can be used in notebooks/python scripts
- Pushshift API
- urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)>
- prawcore.exceptions.ResponseException: received 401 HTTP response HOT 4
- Scrape DoughPennyStocks subreddit? HOT 1
- urllib.error.HTTPError: HTTP Error 503: Service Unavailable HOT 6
- Progress bar during yfinance analysis
- Add more volume information HOT 1
- Create Portfolio data structure and add basic comparison logic HOT 3
- When running the script it gives stocks that are too high for analysis
- Enhancement to #56 - Portfolios of Interesting People HOT 2
- Error: UTF-8 codec cant decode byter 0xff
- ValueError: No tables found HOT 1
- 404 - GET http://localhost:8080/get-basic-data?page=1
- Activation of DeepSource
- 404 - GET http://SERVER_IP_ADRESS:8080/get-basic-data?page=1 HOT 9
- Investigate docker/compose HOT 2
- Stock prediction tools HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reddit-stock-trends.