This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from bs4 import BeautifulSoup | |
| r = requests.get("https://bigdatacv.com/currentjobs/") | |
| content = r.text | |
| soup = BeautifulSoup(content, 'html.parser') | |
| print(soup.prettify()) | |
| [s.extract() for s in soup('script')] | |
| [s.extract() for s in soup('style')] | |
| [s.extract() for s in soup('img')] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from rtf.Rtf2Markdown import getMarkdown | |
| import olefile | |
| import sys | |
| import chardet | |
| import json | |
| #Gets the notes from the File path where Sticky Notes backup is preent | |
| def get_notes(sticky_notes_file_path): | |
| notes = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from socket import socket, SO_REUSEADDR, SOL_SOCKET | |
| from asyncio import Task, coroutine, get_event_loop | |
| class Peer(object): | |
| def __init__(self, server, sock, name): | |
| self.loop = server.loop | |
| self.name = name | |
| self._sock = sock | |
| self._server = server | |
| Task(self._peer_handler()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "MT0000048877";"Street Address for MT0000048877";"Secondary Address for MT0000048877";"Postal Code for MT0000048877";"City for MT0000048877";"San Marino";"SM";"Zip Code for MT0000048877";"RVVGAT2B4XXXX";"Tel No for MT0000048877";"Email ID for MT0000048877";"Contact Person for MT0000048877";"Company Name MT0000048877";"Fax Num MT0000048877" | |
| "UG0000055142";"Street Address for UG0000055142";"Secondary Address for UG0000055142";"Postal Code for UG0000055142";"City for UG0000055142";"Colombia";"CO";"Zip Code for UG0000055142";"BCOEESMM0XXXX";"Tel No for UG0000055142";"Email ID for UG0000055142";"Contact Person for UG0000055142";"Company Name UG0000055142";"Fax Num UG0000055142" | |
| "AE0000060766";"Street Address for AE0000060766";"Secondary Address for AE0000060766";"Postal Code for AE0000060766";"City for AE0000060766";"Seychelles";"SC";"Zip Code for AE0000060766";"IMEXUA2XKXXXX";"Tel No for AE0000060766";"Email ID for AE0000060766";"Contact Person for AE0000060766";"Company Name AE0000060766";"Fax Num AE0000060766" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| from pyspark import SparkContext | |
| from pyspark import SparkConf | |
| from pyspark.sql import SQLContext | |
| from pyspark.sql import SparkSession | |
| from pyspark.sql import DataFrameReader | |
| from pyspark.sql.types import StringType | |
| from pyspark.sql.functions import udf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| from pyspark import SparkContext | |
| from pyspark import SparkConf | |
| from pyspark.sql import SQLContext | |
| from pyspark.sql import SparkSession | |
| from pyspark.sql import DataFrameReader | |
| conf = SparkConf().setAppName('Simple App') | |
| sc = SparkContext("local", "Simple App") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from faker import Faker | |
| from random import randint | |
| import pycountry | |
| import pandas as pd | |
| fake = Faker() | |
| df = pd.read_csv("total_bic.csv") | |
| swift_bics=list(df["swift"]) | |
| val = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import sys | |
| from bs4 import BeautifulSoup | |
| from tqdm import tqdm | |
| import re | |
| import time | |
| import traceback | |
| import os | |
| import pickle | |
| from fake_useragent import UserAgent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import sys | |
| from bs4 import BeautifulSoup | |
| from tqdm import tqdm | |
| import re | |
| import time | |
| import traceback | |
| import os | |
| import pickle | |
| from fake_useragent import UserAgent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' Trivial Eve-SQLAlchemy example. ''' | |
| from eve import Eve | |
| from sqlalchemy import Column, Integer, String, DateTime, Date,Boolean,ForeignKey,Float | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy.orm import column_property,relationship,mapper | |
| from eve_sqlalchemy import SQL | |
| from eve_sqlalchemy.decorators import registerSchema | |
| from eve_sqlalchemy.validation import ValidatorSQL | |
| import datetime | |
| from faker import Factory |