<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on Techetio</title><link>https://techetio.com/tag/python/</link><description>Recent content in Python on Techetio</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 24 Dec 2023 20:41:08 +0000</lastBuildDate><atom:link href="https://techetio.com/tag/python/index.xml" rel="self" type="application/rss+xml"/><item><title>A Seamless Authenticated Proxy Solution For Selenium</title><link>https://techetio.com/2023/12/24/a-seamless-authenticated-proxy-solution-for-selenium/</link><pubDate>Sun, 24 Dec 2023 20:41:08 +0000</pubDate><guid>https://techetio.com/2023/12/24/a-seamless-authenticated-proxy-solution-for-selenium/</guid><description>&lt;h2 id="forwarding-requests-to-an-authenticated-proxy-with-squid"&gt;Forwarding Requests To An Authenticated Proxy With Squid&lt;/h2&gt;&#10;&lt;p&gt;In my web scraping adventures, I&amp;rsquo;ve run into the problem of attempting to use an authenticated proxy with Selenium. Using a proxy is relatively easy to configure in most web browsers, but handling authentication with proxies in selenium is far less trivial. For instance in Chrome, the solution is to create an extension with a listener on the &lt;code&gt;onAuthRequired&lt;/code&gt; event in order to know when to submit the credentials for the proxy. These hacks vary across web browsers as well.&lt;/p&gt;</description></item><item><title>Calling Command Line Tools With The Python Subprocess Module</title><link>https://techetio.com/2023/12/09/calling-command-line-tools-with-the-python-subprocess-module/</link><pubDate>Sat, 09 Dec 2023 06:26:20 +0000</pubDate><guid>https://techetio.com/2023/12/09/calling-command-line-tools-with-the-python-subprocess-module/</guid><description>&lt;p&gt;Being able to use and control external tools within a programming language is a valuable resource. Obviously its ideal to have libraries and modules for such things, but sometimes when you&amp;rsquo;re trying to move fast, it may be easier to interact with a command line tool directly than implement a library/module. I&amp;rsquo;ll be going over to use nmap using the subprocess module in Python.&lt;/p&gt;&#10;&lt;h2 id="subprocess-in-python"&gt;Subprocess in Python&lt;/h2&gt;&#10;&lt;p&gt;First we can import our subprocess module. This is built into the standard library in Python so it doesn&amp;rsquo;t require any external dependencies.&lt;/p&gt;</description></item><item><title>Sending OpenTelemetry Logs To Vector Using Python</title><link>https://techetio.com/2023/04/29/sending-opentelemetry-logs-to-vector-using-python/</link><pubDate>Sat, 29 Apr 2023 01:25:21 +0000</pubDate><guid>https://techetio.com/2023/04/29/sending-opentelemetry-logs-to-vector-using-python/</guid><description>&lt;p&gt;In the world of software development, log management plays a crucial role in understanding the behavior of applications and detecting potential issues. Vector is an open source project currently maintained by DataDog that provides robust capability for collecting, transforming, and routing logs. OpenTelemetry is an observability framework that simplifies the process of collecting, processing, and exporting telemetry data, including logs, from within your application through the use of SDKs. In this article, we will explore a simple example of sending logs to Vector using the Python OpenTelemetry SDK.&lt;/p&gt;</description></item></channel></rss>