How To Scrape Google Web Search To Analyze Headlines With Python
https://www.youtube.com/watch?v=XyfCVg677Bk
/r/Python
https://redd.it/8g6hli
https://www.youtube.com/watch?v=XyfCVg677Bk
/r/Python
https://redd.it/8g6hli
YouTube
how to scrape google web search and analyze headline sentiment with python
Awesome to have you here β€οΈ TIME TO CODE π₯οΈ π§
βββββββββββββββββββββββββββββββββββββββββββββββ
JOIN THE DEVELOPER COMMUNITY π¬:
βββββββββββββββββββββββββββββββββββββββββββββββ
πΊ SUBSCRIBE ON YOUTUBE: https://goo.gl/qkgzWg
π₯ JOIN US ON SLACK: https://goo.gl/dbpgZRβ¦
βββββββββββββββββββββββββββββββββββββββββββββββ
JOIN THE DEVELOPER COMMUNITY π¬:
βββββββββββββββββββββββββββββββββββββββββββββββ
πΊ SUBSCRIBE ON YOUTUBE: https://goo.gl/qkgzWg
π₯ JOIN US ON SLACK: https://goo.gl/dbpgZRβ¦
Using flask-oauthlib in production or authlib
Hi all. I wanted to use flask-oauthlib in a website I'm building, and got it working last night. However, I noticed that the front page of the project has a warning to use authlib instead.
Are people using flask-oauthlib in production? Are you planning to migrate to authlib?
flask-oauthlib page, note the warning:
https://flask-oauthlib.readthedocs.io/en/latest/
/r/flask
https://redd.it/8e1u1q
Hi all. I wanted to use flask-oauthlib in a website I'm building, and got it working last night. However, I noticed that the front page of the project has a warning to use authlib instead.
Are people using flask-oauthlib in production? Are you planning to migrate to authlib?
flask-oauthlib page, note the warning:
https://flask-oauthlib.readthedocs.io/en/latest/
/r/flask
https://redd.it/8e1u1q
Is there a way to add "Save and Add Another" button in crispy forms?
In Django admin there is an option Save and Add Another. How can similar function be added into crispy forms, so that entry from the first submitted form is kept?
/r/django
https://redd.it/8g7fei
In Django admin there is an option Save and Add Another. How can similar function be added into crispy forms, so that entry from the first submitted form is kept?
/r/django
https://redd.it/8g7fei
reddit
Is there a way to add "Save and Add Another" button in... β’ r/django
In Django admin there is an option Save and Add Another. How can similar function be added into crispy forms, so that entry from the first...
python.org is down??
I'm getting:
503 Service Unavailable
No server is available to handle this request.
Anyone know who runs the server and when it can be fixed, I'm trying to download python on a new pc.
/r/Python
https://redd.it/8g7ek6
I'm getting:
503 Service Unavailable
No server is available to handle this request.
Anyone know who runs the server and when it can be fixed, I'm trying to download python on a new pc.
/r/Python
https://redd.it/8g7ek6
reddit
python.org is down?? β’ r/Python
I'm getting: 503 Service Unavailable No server is available to handle this request. Anyone know who runs the server and when it can be fixed,...
What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/8g8qcv
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/8g8qcv
reddit
What's everyone working on this week? β’ r/Python
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your...
[P] The unreasonable usefulness of deep learning in building and cleaning medical image datasets
http://lukeoakdenrayner.wordpress.com/2018/04/30/the-unreasonable-usefulness-of-deep-learning-in-medical-image-datasets/
/r/MachineLearning
https://redd.it/8g6ynp
http://lukeoakdenrayner.wordpress.com/2018/04/30/the-unreasonable-usefulness-of-deep-learning-in-medical-image-datasets/
/r/MachineLearning
https://redd.it/8g6ynp
Luke Oakden-Rayner
The unreasonable usefulness of deep learning in medical image datasets
Medical data is horrible to work with, but deep learning can quickly and efficiently solve many of these problems.
Questions about models
Hey there!
I started out with Django and followed some tutorials. I do know some things about databases but not too much.
My questions:
Let's say we have two models.
1. Bookstore
2.Book
Does bookstore refer to a lot of book ojects
Or
Does a book refer to a bookstore object?
Thanks in advance!
/r/django
https://redd.it/8g9rge
Hey there!
I started out with Django and followed some tutorials. I do know some things about databases but not too much.
My questions:
Let's say we have two models.
1. Bookstore
2.Book
Does bookstore refer to a lot of book ojects
Or
Does a book refer to a bookstore object?
Thanks in advance!
/r/django
https://redd.it/8g9rge
reddit
Questions about models β’ r/django
Hey there! I started out with Django and followed some tutorials. I do know some things about databases but not too much. My questions: Let's...
Simple brokerless task queue for my coding weekend. Proof of Concept state, already usable for toying around.
https://github.com/codepr/tasq
/r/Python
https://redd.it/8g9qpc
https://github.com/codepr/tasq
/r/Python
https://redd.it/8g9qpc
GitHub
GitHub - codepr/tasq: A simple task queue implementation to enqeue jobs on local or remote processes.
A simple task queue implementation to enqeue jobs on local or remote processes. - codepr/tasq
How to pass data from a button in the html page to a database?
I have to code a page that has a question, and 3 options to answer.
I have a page that display the questions and the 3 answers of every question, the questions are already stored in the database. Now my problem is how can I save the user choice for that specific question?
I have created a model to save the user choice, the user id, and the question id. But I'm having trouble to get witch button the user clicked for the answer.
#Here is the model
class UserVotes(models.Model):
id_user = models.CharField(max_length=10)
id_question = models.CharField(max_length=10)
choice_user = models.CharField(max_length=10)
#Here is the view
class QuestionListView(generic.ListView):
model = Question
def voteQuestion(request):
if 'Yes' in request.POST:
idQuestion = request.question.id
idUser = request.user.id
p = UserVotes(id_user=idUser, id_question=idQuestion, choice_user=1)
p.save()
elif 'No' in request.POST:
#same thing, the difference is the value of choice_user will be 2.
#the url.py
url(r'^question/$', views.QuestionListView.as_view(), name='question'),
#the html page
<button type="submit" name="Yes">Yes</button>
<button type="submit" name="No">No</button>
I've got several errors, the last one that came up is a http 405 error, method post not allowed.
If someone can help please, I've spend 2 nights and 1 day on this already haha. Thanks!!
/r/django
https://redd.it/8gae5m
I have to code a page that has a question, and 3 options to answer.
I have a page that display the questions and the 3 answers of every question, the questions are already stored in the database. Now my problem is how can I save the user choice for that specific question?
I have created a model to save the user choice, the user id, and the question id. But I'm having trouble to get witch button the user clicked for the answer.
#Here is the model
class UserVotes(models.Model):
id_user = models.CharField(max_length=10)
id_question = models.CharField(max_length=10)
choice_user = models.CharField(max_length=10)
#Here is the view
class QuestionListView(generic.ListView):
model = Question
def voteQuestion(request):
if 'Yes' in request.POST:
idQuestion = request.question.id
idUser = request.user.id
p = UserVotes(id_user=idUser, id_question=idQuestion, choice_user=1)
p.save()
elif 'No' in request.POST:
#same thing, the difference is the value of choice_user will be 2.
#the url.py
url(r'^question/$', views.QuestionListView.as_view(), name='question'),
#the html page
<button type="submit" name="Yes">Yes</button>
<button type="submit" name="No">No</button>
I've got several errors, the last one that came up is a http 405 error, method post not allowed.
If someone can help please, I've spend 2 nights and 1 day on this already haha. Thanks!!
/r/django
https://redd.it/8gae5m
reddit
r/django - How to pass data from a button in the html page to a database?
1 votes and 4 so far on reddit
RabbitMQ Disconnects
I'm using RabbitMQ(pika) and django on windows, and after the socket sits idle for some time, it disconnects. I allready tried : setting the connection parameter "blocked_connection_timeout" to none.
I also tried check if the connection was open and if not, reconnect, but this always leads to an ConnectionResetError.
Any ideas?
/r/django
https://redd.it/8gbknf
I'm using RabbitMQ(pika) and django on windows, and after the socket sits idle for some time, it disconnects. I allready tried : setting the connection parameter "blocked_connection_timeout" to none.
I also tried check if the connection was open and if not, reconnect, but this always leads to an ConnectionResetError.
Any ideas?
/r/django
https://redd.it/8gbknf
reddit
r/django - RabbitMQ Disconnects
1 votes and 0 so far on reddit
[AF] Which frontend framework works best with Flask?
/u/Cran3kill inspired me to ask [the same question](https://www.reddit.com/r/flask/comments/8ft6e9/which_front_end_with_flask/) he did yesterday with some additional information. All the answers like
> react!
or
> jinja with react was a pain
has no value without a context, so I give you one.
--------------------------------------------------------
So I'm building my data visualization/scrollytelling blog. It's a side project for myself, so I'm free to choose anything I want, but I have no idea what I want.
I know I will be experimenting with d3.js and many other libraries, but I have no idea where to begin with the *general* front-end. I know I can set up basic frontend with the Flask itself, but I want to learn how to separate backend from the frontend completely.
I've used JS and jQuery before in WordPress but that's that. I'm tired of watching all these comparisons of Angular vs React vs Vue. I don't really understand what's the difference and I just need to pick one, create a working environment and play around with d3.
This question may seem off-topic but it's really hard to decide **which framework works best with Flask** when you have no experience with a frontend at all. I've used the search tool, there are some questions about certain frontend frameworks but there's no general one and almost all of the github examples are dead.
How I see it:
On my VPS, EC2 etc. I run at least two servers:
Backend server: nginx -> uwsgi or gunicorn -> Flask (maybe with celery, also caching DB responses here).
Frontend server: ??, usually fetches data from Flask endpoint
Request - Respons cycle.
client -> domain -> dns -> frontend **??** -> server (Flask-RESTful etc.) -> frontend drawing library from db response or cached response -> client.
So I believe I need JS framework to do some routing and provide this 'look and feel' before d3js draws something on it.
I know I could've done that with Flask and Bootstrap, but once again, I want to separate frontend from backend in order to learn JS and how to structure an app like that.
I want it to be fast and light. I don't need *the newest* or *the best*. I probably don't want it to have all the tools in the world since that's why I dislike Django.
I really can't decide on my own. It requires way too much experience to know which one to pick and it seems like frontend battle never ends. Your advice and examples are greatly appreciated.
### Edit: I made a full circle a couple of times and I've decided to pick **vue**. I like its learning curve, components approach, origin and this [udemy course](https://www.udemy.com/vuejs-2-the-complete-guide) along with documentation should cover everything I need. Thanks y'all for help.
/r/flask
https://redd.it/8g7ruf
/u/Cran3kill inspired me to ask [the same question](https://www.reddit.com/r/flask/comments/8ft6e9/which_front_end_with_flask/) he did yesterday with some additional information. All the answers like
> react!
or
> jinja with react was a pain
has no value without a context, so I give you one.
--------------------------------------------------------
So I'm building my data visualization/scrollytelling blog. It's a side project for myself, so I'm free to choose anything I want, but I have no idea what I want.
I know I will be experimenting with d3.js and many other libraries, but I have no idea where to begin with the *general* front-end. I know I can set up basic frontend with the Flask itself, but I want to learn how to separate backend from the frontend completely.
I've used JS and jQuery before in WordPress but that's that. I'm tired of watching all these comparisons of Angular vs React vs Vue. I don't really understand what's the difference and I just need to pick one, create a working environment and play around with d3.
This question may seem off-topic but it's really hard to decide **which framework works best with Flask** when you have no experience with a frontend at all. I've used the search tool, there are some questions about certain frontend frameworks but there's no general one and almost all of the github examples are dead.
How I see it:
On my VPS, EC2 etc. I run at least two servers:
Backend server: nginx -> uwsgi or gunicorn -> Flask (maybe with celery, also caching DB responses here).
Frontend server: ??, usually fetches data from Flask endpoint
Request - Respons cycle.
client -> domain -> dns -> frontend **??** -> server (Flask-RESTful etc.) -> frontend drawing library from db response or cached response -> client.
So I believe I need JS framework to do some routing and provide this 'look and feel' before d3js draws something on it.
I know I could've done that with Flask and Bootstrap, but once again, I want to separate frontend from backend in order to learn JS and how to structure an app like that.
I want it to be fast and light. I don't need *the newest* or *the best*. I probably don't want it to have all the tools in the world since that's why I dislike Django.
I really can't decide on my own. It requires way too much experience to know which one to pick and it seems like frontend battle never ends. Your advice and examples are greatly appreciated.
### Edit: I made a full circle a couple of times and I've decided to pick **vue**. I like its learning curve, components approach, origin and this [udemy course](https://www.udemy.com/vuejs-2-the-complete-guide) along with documentation should cover everything I need. Thanks y'all for help.
/r/flask
https://redd.it/8g7ruf
reddit
Which Front End with Flask? β’ r/flask
Hi, currently working on a project with flask sqlalchemy, and need to do something on Front End but can't figure out which one I should use?...
[R] Photographic Image Generation with Semi-parametric Image Synthesis
https://www.youtube.com/watch?v=U4Q98lenGLQ
/r/MachineLearning
https://redd.it/8g9k0s
https://www.youtube.com/watch?v=U4Q98lenGLQ
/r/MachineLearning
https://redd.it/8g9k0s
YouTube
Semi-parametric Image Synthesis
Semi-parametric Image Synthesis
Xiaojuan Qi, Qifeng Chen, Jiaya Jia, and Vladlen Koltun
CVPR 2018
Paper: http://arxiv.org/abs/1804.10992
Code: http://github.com/xjqicuhk/SIMS
Xiaojuan Qi, Qifeng Chen, Jiaya Jia, and Vladlen Koltun
CVPR 2018
Paper: http://arxiv.org/abs/1804.10992
Code: http://github.com/xjqicuhk/SIMS
Is the official flask tutorial correct?
I'm reading:
http://flask.pocoo.org/docs/1.0/tutorial/factory/
Is this tutorial correct?
I copy the code verbatim to `vink/__init__.py`
I do the exports:
export FLASK_APP="vink"
export FLASK_ENV=development
I run:
flask run
I get:
Error: The file/path provided (./vink) does not appear to exist.
Please verify the path is correct.
If app is not on PYTHONPATH, ensure the extension is .py
I also tried:
export FLASK_APP="vink/__init__.py"
flask run
and I get:
Error: Failed to find application in module "vink". Are you sure it contains a Flask application? Maybe you wrapped it in a WSGI middleware or you are using a factory function.
my tree looks like so:
vink
βββ instance
β βββ config.py
βββ setup.py
βββ tests
βββ vink
βββ __init__.py
βββ __pycache__
βββ config.py
/r/flask
https://redd.it/8g82ka
I'm reading:
http://flask.pocoo.org/docs/1.0/tutorial/factory/
Is this tutorial correct?
I copy the code verbatim to `vink/__init__.py`
I do the exports:
export FLASK_APP="vink"
export FLASK_ENV=development
I run:
flask run
I get:
Error: The file/path provided (./vink) does not appear to exist.
Please verify the path is correct.
If app is not on PYTHONPATH, ensure the extension is .py
I also tried:
export FLASK_APP="vink/__init__.py"
flask run
and I get:
Error: Failed to find application in module "vink". Are you sure it contains a Flask application? Maybe you wrapped it in a WSGI middleware or you are using a factory function.
my tree looks like so:
vink
βββ instance
β βββ config.py
βββ setup.py
βββ tests
βββ vink
βββ __init__.py
βββ __pycache__
βββ config.py
/r/flask
https://redd.it/8g82ka
Flask won't send emails
I'm getting this error:
ERROR:flask_appbuilder.security.registerviews:Send email exception: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:777)
When trying to register a user through [this otherwise excellent Flask boilerplate](https://github.com/dpgaspar/Flask-AppBuilder). The weird thing is, I got the same error when I was fiddling with a different boilerplate.
What try?
/r/flask
https://redd.it/8gfpdm
I'm getting this error:
ERROR:flask_appbuilder.security.registerviews:Send email exception: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:777)
When trying to register a user through [this otherwise excellent Flask boilerplate](https://github.com/dpgaspar/Flask-AppBuilder). The weird thing is, I got the same error when I was fiddling with a different boilerplate.
What try?
/r/flask
https://redd.it/8gfpdm
GitHub
GitHub - dpgaspar/Flask-AppBuilder: Simple and rapid application development framework, built on top of Flask. includes detailedβ¦
Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welc...
Cryptocurrency Portfolio & Index - Ch 3 - Creating an Algorithmic Crypto Trading Bot in Python
https://www.youtube.com/watch?v=pjLzJcj3kV0
/r/Python
https://redd.it/8geyny
https://www.youtube.com/watch?v=pjLzJcj3kV0
/r/Python
https://redd.it/8geyny
YouTube
Bitcoin Bot - Cryptocurrency Portfolio & Index - Chapter 3 - Python Binance Crypto Trading Bot
In this video we discuss Cryptocurrency Portfolios and the Roibal Cryptocurrency Index (25 Largest cryptocurrency Market Cap Coins, $10K per positon bought on 4/21/2018).
email: realestateblockchain1@gmail.com
All code Available on Github:
https://giβ¦
email: realestateblockchain1@gmail.com
All code Available on Github:
https://giβ¦
[P] Comparing Sentence Similarity Methods
http://nlp.town/blog/sentence-similarity/
/r/MachineLearning
https://redd.it/8gfmrm
http://nlp.town/blog/sentence-similarity/
/r/MachineLearning
https://redd.it/8gfmrm
Basic Python Interview Questions and Answers
https://simpliv.wordpress.com/2018/05/02/basic-python-interview-questions-and-answers/
/r/Python
https://redd.it/8ggc5v
https://simpliv.wordpress.com/2018/05/02/basic-python-interview-questions-and-answers/
/r/Python
https://redd.it/8ggc5v
Simpliv LLC
Basic Python Interview Questions and Answers
Q1. What are the key features of Python? Ans: These are the few key features of Python: Python is an interpreted language. That means that, unlike languages like C and its variants, Python does notβ¦
Django 2.0 url() to path() cheatsheet
https://consideratecode.com/2018/05/02/django-2-0-url-to-path-cheatsheet/
/r/django
https://redd.it/8gg14s
https://consideratecode.com/2018/05/02/django-2-0-url-to-path-cheatsheet/
/r/django
https://redd.it/8gg14s
Considerate Code
Django 2.0 url() to path() cheatsheet - Considerate Code
Django 2.0 introduced a new way to define URLs, which greatly simplifies how parameters are captured. In earlier versions of Django, you had to use the url() method and pass a regular expressions with named capturing groups to capture URL parameters. urlβ¦