Using Parsel instead of Beautiful Soup for Web Scraping
Using Parsel instead of Beautiful Soup for Web Scraping
For a long time, I have been using Beautiful Soup 4 to extract data from web pages' HTML markup, it's popular, easy, robust, and battle-tested library for navigating, searching, and modifying the DOM tree. But, recently I came across Parsel, another HTML parsing library that supports XPath selectors, which is missing in Beautiful Soup, and I was in need of using something that can extract data from HTML using XPath so I decided to get it a try. Here's my thought after using it!
Debugging and fixing Selenium's send_keys() wrong text input
Debugging and fixing Selenium's send_keys() wrong text input
I recently faced a weird problem while working on a freelance Selenium project in Python which is: send_keys method is sending random wrong input. Here are the details of the problem, how did I debug it and how I manged to fix after hours of investigating!
yshalsager
About Me
Hi there! I’m Youssif (or better known as yshalsager on the internet), XiaomiFirmwareUpdater Project Lead Developer, XDA Recognized Developer, Self-taught Programmer, and writer at Loghat El-asr magazine. I’ve been coding in Python since 2018, mostly for web scraping, automation, chat bots, and building other cool projects (most of them are open-source and available on GitHub). Also, I’ve been tinkering with Android software development since 2014, building mods, custom recoveries, and custom ROMs for Android devices. You can find my android related works on XDA-Developers Forums.
yshalsager
Contact Me
I’m very open to messages, so, if you want to get in touch you send me a message using any of the methods below and I will get back to you as soon as possible as long as you don’t ask to ask and express your intent clearly. You can use the following contact methods to get in touch for hiring me as well! For business works, the email [email protected] is preferred.
yshalsager
My Projects
Programming Most of my projects are open-source and available on GitHub, some of the prominent ones are: Xiaomi Firmware Updater: My most well-known project that aims to provide firmware packages for Xiaomi custom ROMs users. It has been covered by some of the most popular tech websites and forums in the world, including XDA, 4PDA, Android Community, Piunika Web, SourceForge, and many other websites. This project is a big umbrella for many sub-projects such as:
yshalsager
How to build a Project Treble GSI ROM from source?
Project Treble is a re-architecture of Android by Google that created a split between the OS framework and device-specific low-level software. This new change allow users to flash Generic System Images on their devices, and developers to build one image for a large variety of devices. Here's how to build it!
yshalsager
DualBootPatcher Ultimate Guide: How to use, build and add new devices!
DualBootPatcher is an open-source app that allows multiple ROMs to be installed on a single Android device. In this article I will cover everything about it, for regular and super users as well.
How to use more than keyboard layout and switch between them in Android x86?
How to use more than keyboard layout and switch between them in Android x86?
Android x86 supports multiple keyboard layouts but it doesn't support switching between them easily using a shortcut like alt+shift. Here's how you can do this!