https://www.google.com/chrome/
https://chrome.google.com/webstore/detail/web-scraper/jnhgnonknehpejjnehehllkliplmbmhn
More tutorials: https://www.webscraper.io/
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950 | |
Facebook = { | |
config: { | |
actionDelay: 1000, | |
scrollDelay: 5000, | |
// set to -1 for no limit | |
maxRequestsToAccept: -1, | |
totalRequestsAccepted: 0, | |
// set string to be present in names to be accepted, leave empty to accept all |
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950 | |
Facebook = { | |
config: { | |
actionDelay: 1000, | |
scrollDelay: 5000, | |
// set to -1 for no limit | |
maxRequestsToAccept: -1, | |
totalRequestsAccepted: 0, | |
// set string to be present in names to be accepted, leave empty to accept all |
import boto3 | |
from datetime import datetime, timezone | |
from functools import reduce | |
import operator | |
ec2 = boto3.client('ec2') | |
cloudtrail = boto3.client('cloudtrail') | |
def get_events(instanceid): | |
response = cloudtrail.lookup_events ( |
import boto3 | |
access_key = "XXXXXXXXXXXXXXXXXX" | |
secret_key = "XXXXXXXXXXXXXXXXXX" | |
client = boto3.client('ec2', aws_access_key_id=access_key, aws_secret_access_key=secret_key, | |
region_name='us-east-1') | |
ec2_regions = [region['RegionName'] for region in client.describe_regions()['Regions']] |
import boto3 | |
ec2 = boto3.resource('ec2') | |
volume_iterator = ec2.volumes.all() | |
for v in volume_iterator: | |
for a in v.attachments: | |
print "{0} {1} {2}".format(v.id, v.state, a['InstanceId']) |
# Templates are updated to be compatible with nomad > 0.7.1 | |
[agent] | |
interval = "10s" | |
round_interval = true | |
metric_batch_size = 1000 | |
metric_buffer_limit = 10000 | |
collection_jitter = "0s" | |
flush_interval = "10s" | |
flush_jitter = "3s" | |
precision = "" |
import boto3 | |
boto3.setup_default_session(profile_name='IAM') | |
resource = boto3.resource('iam') | |
client = boto3.client("iam") | |
KEY = 'LastUsedDate' | |
for user in resource.users.all(): |