Skip to content

Instantly share code, notes, and snippets.

View sureshparimi's full-sized avatar
🏠
Working from home

Suresh Parimi sureshparimi

🏠
Working from home
View GitHub Profile
@sureshparimi
sureshparimi / web-scraping-with-beautifulsoup.py
Last active December 29, 2019 11:27
Web scraping using beatifulsoup and Python - Newest questions asked in different technologies/programming languages on stackoverflow.com
from urllib.request import Request, urlopen
from bs4 import BeautifulSoup
import csv
try:
max = 20
technologies = ['python','java','aws','aws-lambda','pandas','numpy','selenium','qtp','testing',]
for tech in technologies:
print(tech)
@sureshparimi
sureshparimi / gist:1f58ccd7915a5f4f196a83ec9390ac7c
Created January 20, 2019 03:16
Sending mass personalized Emails using Python scripts and gmail
import smtplib
import csv
from string import Template
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
MY_ADDRESS = 'YOUR_EMAIL@gmail.com' #<----------------# Enter your gmail Email address here##########
@sureshparimi
sureshparimi / gist:df67171da102db6c7d67285479c3e76c
Created December 26, 2018 10:08
RPA tool - UIPath - Scrape all Jobs from StackOverflow and write them into spreadsheet
https://github.com/sureshparimi/RPA-UIPATH
@sureshparimi
sureshparimi / ScrapingStackOverFlow_.idea_ScrapingStackOverFlow.iml
Created November 2, 2018 02:16
This script Scrape the jobs on StackOverFlow website - v1 - Set Additional filters such as Perks for Search keyword QA included. This is a WIP version and if you face any problem, please contact me to fix them. Note: DO not run more often on StackOverflow,doing so may result in attracting legal action including suspension of your stackoverlow ac…
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.7 (Utilities)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="projectConfiguration" value="Nosetests" />
<option name="PROJECT_TEST_RUNNER" value="Nosetests" />
@sureshparimi
sureshparimi / gist:fd6ee950605742ca6363b7103dbbe747
Created October 5, 2018 11:17
Scrape StackOverFlowJobs using Robot Framework(python + Selenium)
#############################################################
# Test case Section
##############################################################
*** Settings ***
Resource ../Resources/SOKeywords.robot
Library SeleniumLibrary
*** Test Cases ***
Retrieve Jobs in SO
@sureshparimi
sureshparimi / SauceLabs.py
Created August 23, 2018 17:41 — forked from datakurre/SauceLabs.py
Robot Framework Selenium test suite with Sauce Labs support
import re
import requests
import simplejson as json
from robot.api import logger
from robot.libraries.BuiltIn import BuiltIn
USERNAME_ACCESS_KEY = re.compile('^(http|https):\/\/([^:]+):([^@]+)@')
@sureshparimi
sureshparimi / Scrape your name from first page of google
Last active August 22, 2018 12:49
Scraping data - example of scraping your name from first page google
##############################################
This script helps in scraping data from google
###############################################
from splinter import Browser
import pandas as pd
# open a browser
browser = Browser('firefox')
# Width, Height
browser.driver.set_window_size(640, 480)
import json
import requests
import urllib
import openpyxl
main_API = 'https://api.mailtest.in/v1/'
@sureshparimi
sureshparimi / This code parses the xml and read the required text of the tag using Elementtree
Created August 22, 2018 12:39
Parsing XML and read the text of the tag using ElementTree using Python
import xml.etree.ElementTree as ET
import itertools
import os
tree = ET.parse('C:\\Users\\Administrator\\Desktop\\API testing\\Gordon_Seed_03212018.xml')
count = 0
for elem in tree.findall(".//additonalTradeItemID"):
if (elem.get("type") == "DISTRIBUTOR"):
***setting***
Library SeleniumLibrary
# Resource D:/Robot_Settings/resources.txt
***Test case***
01 Open Google
Open Google
*** Variables ***