Skip to content

Instantly share code, notes, and snippets.

View mostafa1972's full-sized avatar
🎯
Focusing

Mostafa Siddiqui mostafa1972

🎯
Focusing
  • @siddi's Soft
  • Dhaka,Bangladesh
View GitHub Profile
@mostafa1972
mostafa1972 / sel_bot_fb_grp_msg.py
Last active October 30, 2021 13:26
Auto Message to FB Group by Selenium Bot
from time import sleep
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
def main():
# Your Facebook account user and password
@mostafa1972
mostafa1972 / web_scraping_flipkart.py
Last active November 28, 2019 13:37
Flipkart Web Scraping in Python: This will be store IPhone Mobile Name ,Price & Rating in csv file
#from selenium import webdriver
from bs4 import BeautifulSoup as soup
from urllib.request import urlopen as uReq
#import pandas as pd
my_url= 'https://www.flipkart.com/search?q=iphone'
uClient=uReq(my_url)
page_html=uClient.read()
uClient.close()
@mostafa1972
mostafa1972 / celebrity_web_scrap1.py
Last active December 4, 2019 05:06
Top 100 Celebrity List download through BeautifulSoup & urllib function and stored in SQLite3 DB and CSV file
#Top 100 Celebrity data stored in SQLite3 DB and CSV file
#
from bs4 import BeautifulSoup as soup
from urllib.request import urlopen as uReq
#from db_utility import db_connect
from sqlite3 import Error
import sqlite3
import os
@mostafa1972
mostafa1972 / flipkart.py
Created December 7, 2019 10:24
Web_Scraping: Product Information store in DB by Selenium,bs4 & SQlite3
from selenium import webdriver
from bs4 import BeautifulSoup
#import pandas as pd
import os
import sqlite3
#default path for database
DEFAULT_PATH = os.path.join(os.path.dirname(__file__), 'database.sqlite3')
#db connection function
@mostafa1972
mostafa1972 / download_file_from_web.py
Last active February 20, 2020 02:48
File Download from WebSite using Threading Module
import threading
import urllib.request
import os
from queue import Queue
class Downloader(threading.Thread):
"""Threaded File Downloader"""
def __init__(self, queue):
"""Initialize the thread"""