python

Python Script to Query Elasticsearch

Here is a basic Python script to query Elasticsearch using the elasticsearch library. Very useful for data mining. Here is…

2 years ago

Python Script to Query Active Directory

Here is a basic Python script to query Active Directory using the "ldap3" library. Useful script code for authentication. import…

2 years ago

Python Script to Query POSTGRESQL Database

Here is a basic Python script to query a PostgreSQL database using the "psycopg2" library. Very useful for data mining.…

2 years ago

Python Script to Query SQL Database

Here is a basic Python script to query a SQL database using the "sqlite3" library. Very useful for data mining.…

2 years ago

Python Script to Download Youtube Videos

Here is an example of a Python script that uses the "pytube" library to download a YouTube video: from pytube…

2 years ago

Python Script to Download Images from URL

Here is an example Python script that downloads images from a given URL and saves them to a local directory:…

2 years ago

Python Script to Convert JSON to CSV

Here is an example Python script that converts a JSON file to a CSV file: import json import csv #…

2 years ago

Python Script to Replace String in XML File

Here is a Python script that can be used to replace a specific string in an XML file: import xml.etree.ElementTree…

2 years ago

Python Script to Replace Text in Multiple Files

Here is an example of a Python script that replaces a specific text in multiple files: import os import glob…

2 years ago

Python Script to Replace Text in a File

Here is an example of a Python script that replaces a specific text in a file: import os # specify…

2 years ago