Struggling with creating modern day webscraping bot
Hi,
I am trying to make a bot in Python for fun utilizing selenium and the requests module. I have run into of trying to trigger a one-click captcha. I am aware that the one-click captcha is not 100% understood but there are techniques to trigger it over the image based one such as browsing youtube videos and signing in and out of gmail.
​
My normal chrome sessions are able to trigger a one-click captcha but my selenium chromedriver session always gets the image.
​
I am curious as to how modern sneaker bots such as aiobot([https://www.aiobot.com/](https://www.aiobot.com/)) are able to make their automation not detectable by chrome.
​
If I am able to trick chrome into thinking I'm not a bot initially, I believe I can then get to the point of watching youtube videos and basically further make chrome have more faith in my selenium session that it is a real human, thus triggering one-click captcha.
​
But does anyone have any thoughts has to how to get my selenium session to act 100% like a normal browsing session?
​
Thanks.
/r/Python
https://redd.it/bdl5wm
Hi,
I am trying to make a bot in Python for fun utilizing selenium and the requests module. I have run into of trying to trigger a one-click captcha. I am aware that the one-click captcha is not 100% understood but there are techniques to trigger it over the image based one such as browsing youtube videos and signing in and out of gmail.
​
My normal chrome sessions are able to trigger a one-click captcha but my selenium chromedriver session always gets the image.
​
I am curious as to how modern sneaker bots such as aiobot([https://www.aiobot.com/](https://www.aiobot.com/)) are able to make their automation not detectable by chrome.
​
If I am able to trick chrome into thinking I'm not a bot initially, I believe I can then get to the point of watching youtube videos and basically further make chrome have more faith in my selenium session that it is a real human, thus triggering one-click captcha.
​
But does anyone have any thoughts has to how to get my selenium session to act 100% like a normal browsing session?
​
Thanks.
/r/Python
https://redd.it/bdl5wm
Aiobot
AIO Bot - Home Page
AIO Bot is a Sneaker Bot that allows you to buy Jordans, Dunks, and more at retail so you can resell sneakers and make money online from home
Reading in large text data using numba?
I want to read a large text file in and then use numba operations on it (and do this in parallel using prange). Does anyone have any good resources or tips on how to do this?
So far, I tried creating a generator to read text, but numba would not let me pass it in as a parameter (which I'm confused about, because [here](http://numba.pydata.org/numba-doc/0.18.1/developer/generators.html) it mentions that generators are supported by numba.
/r/Python
https://redd.it/bdmnbp
I want to read a large text file in and then use numba operations on it (and do this in parallel using prange). Does anyone have any good resources or tips on how to do this?
So far, I tried creating a generator to read text, but numba would not let me pass it in as a parameter (which I'm confused about, because [here](http://numba.pydata.org/numba-doc/0.18.1/developer/generators.html) it mentions that generators are supported by numba.
/r/Python
https://redd.it/bdmnbp
reddit
r/Python - Reading in large text data using numba?
0 votes and 0 comments so far on Reddit
What did Fluent Python help you work on with Django?
I will read it in a few weeks, many recommend it, and I want to know what it helps in the Django scenario. For now, besides the basic python, I just needed to learn decorators and super(), but there is a difference between using a framework and learning to program.
/r/django
https://redd.it/bdndaj
I will read it in a few weeks, many recommend it, and I want to know what it helps in the Django scenario. For now, besides the basic python, I just needed to learn decorators and super(), but there is a difference between using a framework and learning to program.
/r/django
https://redd.it/bdndaj
reddit
r/django - What did Fluent Python help you work on with Django?
0 votes and 0 comments so far on Reddit
🐍🕸 `wasmer`, a Python extension to run WebAssembly binaries as fast as possible
https://github.com/wasmerio/python-ext-wasm
/r/Python
https://redd.it/bdn7ij
https://github.com/wasmerio/python-ext-wasm
/r/Python
https://redd.it/bdn7ij
GitHub
GitHub - wasmerio/wasmer-python: 🐍🕸 WebAssembly runtime for Python
🐍🕸 WebAssembly runtime for Python. Contribute to wasmerio/wasmer-python development by creating an account on GitHub.
Swagger without DRF?
Hello,
I want to have swagger ui in my project but I don't use Django Rest Framework but all the packages I found are specifically for DRF, like [https://django-rest-swagger.readthedocs.io/en/latest/](https://django-rest-swagger.readthedocs.io/en/latest/)
Is there a package for django that I could use to generate swagger docs without DRF?
/r/django
https://redd.it/bdpxrt
Hello,
I want to have swagger ui in my project but I don't use Django Rest Framework but all the packages I found are specifically for DRF, like [https://django-rest-swagger.readthedocs.io/en/latest/](https://django-rest-swagger.readthedocs.io/en/latest/)
Is there a package for django that I could use to generate swagger docs without DRF?
/r/django
https://redd.it/bdpxrt
django-rest-swagger.readthedocs.io
Django REST Swagger
Swagger UI / OpenAPI Documentation for Django REST Framework
How To Create A Telegram Bot With Python!
https://youtu.be/GWH1XDXfAXQ
/r/Python
https://redd.it/bdo1g1
https://youtu.be/GWH1XDXfAXQ
/r/Python
https://redd.it/bdo1g1
YouTube
How To Create A Telegram Bot With Python
Host your bot here for free: https://bit.ly/zeetgeist
PROJECT HELPERS:
Telegram: https://telegram.org/
ngrok: https://ngrok.com/download
Source Code: https://github.com/jg-fisher/python-telegram-bot
Diagram: http://bit.ly/telegrambotdiagram
Telegram Bot…
PROJECT HELPERS:
Telegram: https://telegram.org/
ngrok: https://ngrok.com/download
Source Code: https://github.com/jg-fisher/python-telegram-bot
Diagram: http://bit.ly/telegrambotdiagram
Telegram Bot…
9 Django Tips for Working with Databases
https://python.works-hub.com/learn/9-django-tips-for-working-with-databases-f48d8?utm_source=reddit&utm_medium=organicsocial&utm_campaign=j.kaplan
/r/django
https://redd.it/bdsq7f
https://python.works-hub.com/learn/9-django-tips-for-working-with-databases-f48d8?utm_source=reddit&utm_medium=organicsocial&utm_campaign=j.kaplan
/r/django
https://redd.it/bdsq7f
Python Works
9 Django Tips for Working with Databases | Python Works
Small changes that make all the differenceORMs offer great utility for developers but abstracting access to the database has its costs. Developers who are willing to poke around the database and change some defaults often find that great improvements can…
Learning Django for the first time. Need help with error. TemplateSyntaxError - Invalid block tag 'endif'
Hi, I'm new to Django, and Python in general.
I've been following Corey Schafer's Django tutorial but got stuck with an invalid blog tag error: [https://pastebin.com/816QTzDy](https://pastebin.com/816QTzDy)
My base.html looks like this: [https://pastebin.com/ndsbJKi4](https://pastebin.com/ndsbJKi4)
​
At 26:30 in this tutorial: [https://www.youtube.com/watch?v=q4jPR-M0TAQ](https://www.youtube.com/watch?v=q4jPR-M0TAQ)
​
Would appreciate if anyone can help me out here. Thanks in advance!
/r/django
https://redd.it/bdrp3u
Hi, I'm new to Django, and Python in general.
I've been following Corey Schafer's Django tutorial but got stuck with an invalid blog tag error: [https://pastebin.com/816QTzDy](https://pastebin.com/816QTzDy)
My base.html looks like this: [https://pastebin.com/ndsbJKi4](https://pastebin.com/ndsbJKi4)
​
At 26:30 in this tutorial: [https://www.youtube.com/watch?v=q4jPR-M0TAQ](https://www.youtube.com/watch?v=q4jPR-M0TAQ)
​
Would appreciate if anyone can help me out here. Thanks in advance!
/r/django
https://redd.it/bdrp3u
Pastebin
TemplateSyntaxError at / Invalid block tag on line 53: 'endif'. Did you forget - Pastebin.com
Unaffected variables
Hello everyone.
I am doing some little benchmarks with loops on python's data structures
and I would like to know if python is doing some kind of optimization in these
following cases :
​
`for i in l:`
`i`
​
is Python computing the value of `i` even if it is not affected/used ?
​
Same with this for example :
`i = 0`
`while i < SIZE:`
`l[i]`
​
Is `l[i]` computed anyway ?
​
Thanks
/r/Python
https://redd.it/bdtyp9
Hello everyone.
I am doing some little benchmarks with loops on python's data structures
and I would like to know if python is doing some kind of optimization in these
following cases :
​
`for i in l:`
`i`
​
is Python computing the value of `i` even if it is not affected/used ?
​
Same with this for example :
`i = 0`
`while i < SIZE:`
`l[i]`
​
Is `l[i]` computed anyway ?
​
Thanks
/r/Python
https://redd.it/bdtyp9
reddit
r/Python - Unaffected variables
0 votes and 0 comments so far on Reddit
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/bdudq2
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/bdudq2
reddit
r/Python - What's everyone working on this week?
0 votes and 1 comment so far on Reddit
[P] I used a Variational Autoencoder to build a feature-based face editing software
Hey reddit,
In my latest weekend-project I have been using a Variational Autoencoder to build a feature-based face editor. The model is explained in my youtube video:
https://youtu.be/uszj2MOLY08
You can inspect the code at Github:
https://github.com/SteffenCzolbe/FeatureTransferApp
The feature editing is based on modifying the latent distribution of the VAE. After training of the VAE is completed, the latent space is mapped by encoding the training data once more. Latent space vectors of each feature are determined based on the labels of the training data. Then to edit an image, we can add a combination of feature vectors to its latent distribution, and then reconstruct it. The reconstruction creates an altered version of the original image, based on the featrures we added to the latent representation.
The model used is heavily inspired by the Bate-VAE used in this paper by google deepmind (https://pdfs.semanticscholar.org/a902/26c41b79f8b06007609f39f82757073641e2.pdf). I made some adjustments to it to incorporate more recent advancements in neural network architecture, like using a Leaky ReLu activation function. The dataset used is celebA, which consist of 200.000 annotated images of celebrities. I aligned and cropped the images to a 64x64 resolution before training. The model is implememted in PyTorch, and PyGame has been used for the GUI. Training on my
/r/MachineLearning
https://redd.it/bdtmgh
Hey reddit,
In my latest weekend-project I have been using a Variational Autoencoder to build a feature-based face editor. The model is explained in my youtube video:
https://youtu.be/uszj2MOLY08
You can inspect the code at Github:
https://github.com/SteffenCzolbe/FeatureTransferApp
The feature editing is based on modifying the latent distribution of the VAE. After training of the VAE is completed, the latent space is mapped by encoding the training data once more. Latent space vectors of each feature are determined based on the labels of the training data. Then to edit an image, we can add a combination of feature vectors to its latent distribution, and then reconstruct it. The reconstruction creates an altered version of the original image, based on the featrures we added to the latent representation.
The model used is heavily inspired by the Bate-VAE used in this paper by google deepmind (https://pdfs.semanticscholar.org/a902/26c41b79f8b06007609f39f82757073641e2.pdf). I made some adjustments to it to incorporate more recent advancements in neural network architecture, like using a Leaky ReLu activation function. The dataset used is celebA, which consist of 200.000 annotated images of celebrities. I aligned and cropped the images to a 64x64 resolution before training. The model is implememted in PyTorch, and PyGame has been used for the GUI. Training on my
/r/MachineLearning
https://redd.it/bdtmgh
YouTube
Editing Faces with AI - Variational Autoencoder
Hey! A demonstration on how to use a Variational Autoencoder to edit facial features. Code + Install guide: https://github.com/SteffenCzolbe/FeatureTransferA...
Implement ASGI handler and coroutine-safety by andrewgodwin · Pull Request #11209 · django/django · GitHub
https://github.com/django/django/pull/11209
/r/django
https://redd.it/bdtfcd
https://github.com/django/django/pull/11209
/r/django
https://redd.it/bdtfcd
GitHub
Fixed #30451 -- Added ASGI handler and coroutine-safety. by andrewgodwin · Pull Request #11209 · django/django
This adds in an AsgiHandler handler class, get_asgi_application, and an asgi.py file into the default project template. It serves Django over an ASGI interface, but does not yet allow asynchronous ...
Provide safe downloads of digital products?
Hi, r/flask!
I am working on a webpage for a friend that's selling beats. The project is nearing an end, but I need to develop a way to provide downloads for the products we sell.
My main focus needs to be security and efficiency. The store needs to provide immediate downloads to customers, and it is naturally very important to prevent unauthorized access to these files.
How can I solve this? What should my main concern be? Where can I get help/info about things like this?
Thanks in advance.
/r/flask
https://redd.it/bds8n4
Hi, r/flask!
I am working on a webpage for a friend that's selling beats. The project is nearing an end, but I need to develop a way to provide downloads for the products we sell.
My main focus needs to be security and efficiency. The store needs to provide immediate downloads to customers, and it is naturally very important to prevent unauthorized access to these files.
How can I solve this? What should my main concern be? Where can I get help/info about things like this?
Thanks in advance.
/r/flask
https://redd.it/bds8n4
reddit
r/flask - Provide safe downloads of digital products?
7 votes and 5 comments so far on Reddit
[D] I couldn’t find a good resource for data scientists to learn Linux/shell scripting, so I made a cheat sheet and uploaded three hours of lessons. Enjoy!
I’ve taught Linux/UNIX/shell scripting at my past few jobs and realized I should record lessons and put them online. This is for everyone who wants/needs to learn Linux on the fly. Hopefully it’s useful.
[The cheat sheet is located here](https://www.dropbox.com/s/k7athu9i8lmmeln/Linux%20Cheat%20Sheet%20David%20Relyea.pdf)
[The three hours of lessons are located here](https://www.youtube.com/playlist?list=PLdfA2CrAqQ5kB8iSbm5FB1ADVdBeOzVqZ)
/r/MachineLearning
https://redd.it/bdviis
I’ve taught Linux/UNIX/shell scripting at my past few jobs and realized I should record lessons and put them online. This is for everyone who wants/needs to learn Linux on the fly. Hopefully it’s useful.
[The cheat sheet is located here](https://www.dropbox.com/s/k7athu9i8lmmeln/Linux%20Cheat%20Sheet%20David%20Relyea.pdf)
[The three hours of lessons are located here](https://www.youtube.com/playlist?list=PLdfA2CrAqQ5kB8iSbm5FB1ADVdBeOzVqZ)
/r/MachineLearning
https://redd.it/bdviis
Dropbox
Dropbox - Error
Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!
Templated Email for Python (use Jinja2 to render emails)
https://github.com/kkinder/templatemail
/r/flask
https://redd.it/bdxysj
https://github.com/kkinder/templatemail
/r/flask
https://redd.it/bdxysj
GitHub
GitHub - kkinder/templatemail: Templated Email for Python
Templated Email for Python. Contribute to kkinder/templatemail development by creating an account on GitHub.
A Crash Course in Django: A quick way to get started making basic Django websites without going too in-depth.
https://ceiphr.com/blog/a-crash-course-in-django
/r/django
https://redd.it/bdyd26
https://ceiphr.com/blog/a-crash-course-in-django
/r/django
https://redd.it/bdyd26
Ceiphr
A Crash Course in Django
This crash course is a quick way to get started making a basic Django website without going in-depth about the underlying concepts.
https://github.com/JaDogg/expressPython - A small Python editor for learning and competitive programming
/r/Python
https://redd.it/bduzsr
/r/Python
https://redd.it/bduzsr
13 Project Ideas for Intermediate Python Developers
https://realpython.com/intermediate-python-project-ideas/
/r/Python
https://redd.it/bdx0jb
https://realpython.com/intermediate-python-project-ideas/
/r/Python
https://redd.it/bdx0jb
Realpython
13 Project Ideas for Intermediate Python Developers – Real Python
In this article, you'll learn how you can get started on 13 Python project ideas that are just right for intermediate Python developers. They'll challenge you enough to help you become a better Pythonista but will still be doable!
[RANT] Fabric 2 jumped the shark with it's complete rewrite
As you may know there's a major new version of [fabric](http://www.fabfile.org/) (out for some months actually); a complete *rewrite to do everything now in the proper way™* in version 2.
I used to love fabric, because
* It fills a gap of doing repetetive task doing manually and using a full-blown automation and provisioning tool like ansible
* It's simple to use, but also powerful enough to do everything you need
Despite all dependencies being ready, there was never a port to Python 3 of the old and beloved fabric 1, so I thought I'd use version 2 for a new project, but damn, does it seem over-engineered now, making everything harder and more annoying:
## No real compatibility with the old fabfiles
Yes, the API is rewritten, and the [changes are major](http://www.fabfile.org/upgrading.html). Since the old fabric won't ever be compatible with Python3, you must use the new fabric (thankfully there's [`fabric3`](https://pypi.org/project/Fabric3/) which was forked from the old fabric to be compatible with Python 3. Apparently, it was not that hard to port, but fabric's original author [preferred to ignore attempts making version 1 Python 3 compatible](https://github.com/fabric/fabric/issues/1378)).
Also, the project is now split into multiple dependencies, like [Invoke](https://www.pyinvoke.org/), [Invocations](https://invocations.readthedocs.io/en/latest/), [Patchwork](https://fabric-patchwork.readthedocs.io/en/latest/).
## No `local` command to run tasks
/r/django
https://redd.it/be193q
As you may know there's a major new version of [fabric](http://www.fabfile.org/) (out for some months actually); a complete *rewrite to do everything now in the proper way™* in version 2.
I used to love fabric, because
* It fills a gap of doing repetetive task doing manually and using a full-blown automation and provisioning tool like ansible
* It's simple to use, but also powerful enough to do everything you need
Despite all dependencies being ready, there was never a port to Python 3 of the old and beloved fabric 1, so I thought I'd use version 2 for a new project, but damn, does it seem over-engineered now, making everything harder and more annoying:
## No real compatibility with the old fabfiles
Yes, the API is rewritten, and the [changes are major](http://www.fabfile.org/upgrading.html). Since the old fabric won't ever be compatible with Python3, you must use the new fabric (thankfully there's [`fabric3`](https://pypi.org/project/Fabric3/) which was forked from the old fabric to be compatible with Python 3. Apparently, it was not that hard to port, but fabric's original author [preferred to ignore attempts making version 1 Python 3 compatible](https://github.com/fabric/fabric/issues/1378)).
Also, the project is now split into multiple dependencies, like [Invoke](https://www.pyinvoke.org/), [Invocations](https://invocations.readthedocs.io/en/latest/), [Patchwork](https://fabric-patchwork.readthedocs.io/en/latest/).
## No `local` command to run tasks
/r/django
https://redd.it/be193q
[AF] Query an existing MySQL view with Flask-SQLAlchemy / SQLAlchemy
I'm working with a schema that I originally created by declaring models and then using the db.create_all() method to generate everything. Since then, I've created a view manually in MySQL Workbench. I tried just declaring the view as its own model after I had run the script containing the .create_all() call, but it has some weird behavior in that query.all() doesn't return all the results. Additionally, if I try to drop and recreate the schema using my database creation script, I get an "Unknown table" error.
What is the best way to approach this?
/r/flask
https://redd.it/bduf0w
I'm working with a schema that I originally created by declaring models and then using the db.create_all() method to generate everything. Since then, I've created a view manually in MySQL Workbench. I tried just declaring the view as its own model after I had run the script containing the .create_all() call, but it has some weird behavior in that query.all() doesn't return all the results. Additionally, if I try to drop and recreate the schema using my database creation script, I get an "Unknown table" error.
What is the best way to approach this?
/r/flask
https://redd.it/bduf0w
reddit
r/flask - [AF] Query an existing MySQL view with Flask-SQLAlchemy / SQLAlchemy
2 votes and 1 comment so far on Reddit