How to extract text from a webpage using Python, requests and BeautifulSoup: https://www.reddit.com/r/Python/comments/axu66s/how_to_extract_text_from_a_webpage_using_python/
reddit
r/Python - How to extract text from a webpage using Python, requests and BeautifulSoup
23 votes and 10 comments so far on Reddit
Resources on writing secure Python code and good practices with Python development: https://www.reddit.com/r/Python/comments/azud2a/resources_on_writing_secure_python_code_and_good/
reddit
Resources on writing secure Python code and good practices with...
I've been coding in Python (mostly as a hobby) for a few years now and recently also at my job but I don't really consider myself a pro by any...
An interview with the creator of the popular PyTorch deep learning framework: https://www.reddit.com/r/Python/comments/azl0i7/an_interview_with_the_creator_of_the_popular/
reddit
r/Python - An interview with the creator of the popular PyTorch deep learning framework
34 votes and 1 comment so far on Reddit
I built a tool to save commands used in the terminal and sync between computers: https://www.reddit.com/r/Python/comments/b0537d/i_built_a_tool_to_save_commands_used_in_the/
reddit
r/Python - I built a tool to save commands used in the terminal and sync between computers
23 votes and 6 comments so far on Reddit
Simple way to encode a string according to a password?: https://stackoverflow.com/questions/2490334/simple-way-to-encode-a-string-according-to-a-password
Stack Overflow
Simple way to encode a string according to a password?
Does Python have a built-in, simple way of encoding/decoding strings using a password?
Something like this:
>>> encode('John Doe', password = 'mypass')
'sjkl28cn2sx0'
>>> decode('
Something like this:
>>> encode('John Doe', password = 'mypass')
'sjkl28cn2sx0'
>>> decode('
An explanation of Python metaclasses, and how the Django ORM uses them to work some "magic": https://www.reddit.com/r/Python/comments/b09dsr/an_explanation_of_python_metaclasses_and_how_the/
reddit
r/Python - An explanation of Python metaclasses, and how the Django ORM uses them to work some "magic"
55 votes and 7 comments so far on Reddit
keras-js "Error: [Model] Model configuration does not contain any layers.": https://stackoverflow.com/questions/49201067/keras-js-error-model-model-configuration-does-not-contain-any-layers
Stack Overflow
keras-js "Error: [Model] Model configuration does not contain any layers."
Im trying to load a simple example network created with keras in the browser using keras-js. After saving the model as .h5 file and converting it to a .bin file I get following error while loading ...
Monty Python's Cheese shop sketch transcript: http://www.mit.edu/afs.new/sipb/user/ayshames/Python/CHEESHOP.PYTHON
Machine Learning Resume Generator With Python, TextGenRnn and AWS: https://www.reddit.com/r/Python/comments/b099zl/machine_learning_resume_generator_with_python/
reddit
Machine Learning Resume Generator With Python, TextGenRnn and AWS
I was like one of you folks once, trying to think how to write a resume before I started working as a full-stack dev at a place I love. Over the...
reload module with pyximport?: https://stackoverflow.com/questions/55056563/reload-module-with-pyximport
Stack Overflow
reload module with pyximport?
I have a python program that loads quite a bit of data before running. As such, I'd like to be able to reload code without reloading data. With regular python, importlib.reload has been working fine.
How can I profile a multithread program in Python?: https://stackoverflow.com/questions/653419/how-can-i-profile-a-multithread-program-in-python
Stack Overflow
How can I profile a multithread program in Python?
I'm developing an inherently multithreaded module in Python, and I'd like to find out where it's spending its time. cProfile only seems to profile the main thread. Is there any way of profiling all
py2exe executable doesn't flush stdout properly: https://stackoverflow.com/questions/33637710/py2exe-executable-doesnt-flush-stdout-properly
Stack Overflow
py2exe executable doesn't flush stdout properly
I have a python script that prints some 5-digit numbers. I call this script through a Qprocess and read its output which I use later on.
On windows the script is packaged into an executable with py...
On windows the script is packaged into an executable with py...
tensorflow feed list feature (multi-hot) to tf.estimator: https://stackoverflow.com/questions/52938714/tensorflow-feed-list-feature-multi-hot-to-tf-estimator
Stack Overflow
tensorflow feed list feature (multi-hot) to tf.estimator
Some of the feature columns' data type is list. And their length can be different. I want to encode this column as a multi-hot categorical feature and feed it to tf.estimator. I tried the following...
k-hot encoded feature Tensorflow Estimator: https://stackoverflow.com/questions/52001997/k-hot-encoded-feature-tensorflow-estimator
Stack Overflow
k-hot encoded feature Tensorflow Estimator
Let's say I have the following pandas dataframe:
| col1 | col2 | col3 |
---------------------------------
0 | 5 | 4 | [0,2,4] |
1 | 3 | 8 | [7,3] |
2 | 2 |...
| col1 | col2 | col3 |
---------------------------------
0 | 5 | 4 | [0,2,4] |
1 | 3 | 8 | [7,3] |
2 | 2 |...
Python Insider: Python 3.7.3rc1 is now available for testing: https://www.reddit.com/r/Python/comments/b0fmrg/python_insider_python_373rc1_is_now_available_for/
reddit
r/Python - Python Insider: Python 3.7.3rc1 is now available for testing
25 votes and 1 comment so far on Reddit
replus: A wrapper for Python's re library for advanced regex pattern management: https://www.reddit.com/r/Python/comments/b08nm5/replus_a_wrapper_for_pythons_re_library_for/
reddit
r/Python - replus: A wrapper for Python's re library for advanced regex pattern management
21 votes and 8 comments so far on Reddit