Is Web Scraping Legal?

πŸ‘©β€βš–οΈ Disclaimer: I’m a coder, not a legal advisor or professional. In this article, I merely present my own judgment and research on the topic. But this is not legal advice! Legal Opinion 1: Web Scraping is Legal [Apify] “Web scraping is legal if you scrape data publicly available on the internet. But you should … Read more

5 Best Ways to Reverse a Python Dictionary

Problem Formulation and Solution Overview In this article, you’ll learn how to reverse a Dictionary in Python. To make it more fun, we have the following running scenario: We have a Python Dictionary containing three (3) users who are signed up at the Finxter Academy. The current key:value pairs consist of username:id. The owner would … Read more

How to Assign the Result of exec() to a Python Variable?

πŸ’¬ Question: Say you have an expression you want to execute using the exec() function. How to store the result of the expression in a Python variable my_result? Before I show you the solution, let’s quickly recap the exec() function: Recap Python exec() Python’s exec() function executes the Python code you pass as a string … Read more