In [1]:
# Import requests (to download the page)
import requests

# Import BeautifulSoup (to parse what we download)
from bs4 import BeautifulSoup

# Import Time (to add a delay between the times the scape runs)
import time

# Import smtplib (to allow us to email)
import smtplib

# This is a pretty simple script. The script downloads the homepage of VentureBeat, and if it finds some text, emails me.
# If it does not find some text, it waits 60 seconds and downloads the homepage again

In [32]:
url = "https://cryptocelebrities.co/marketplace/robert-de-niro/#"
# set the headers like we are a browser,
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
# download the homepage
response = requests.get(url, headers=headers)
# parse the downloaded homepage and grab all text, then,
soup = BeautifulSoup(response.text, "lxml")

In [33]:
soup.find_all("p", {"class":"buy-contract"})
soup


Out[33]:
<!DOCTYPE html>
<!--[if IE 6]><html id="ie6" lang="en-US"> <![endif]--><!--[if IE 7]><html id="ie7" lang="en-US"> <![endif]--><!--[if IE 8]><html id="ie8" lang="en-US"> <![endif]--><!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!--><html lang="en-US"> <!--<![endif]--><head><meta charset="utf-8"/><meta content="IE=edge" http-equiv="X-UA-Compatible"/><link href="https://cryptocelebrities.co/xmlrpc.php" rel="pingback"/> <!--[if lt IE 9]> <script src="https://cryptocelebrities.co/templates/js/html5.js" type="text/javascript"></script> <![endif]--> <script type="text/javascript">document.documentElement.className = 'js';</script> <script>var et_site_url='https://cryptocelebrities.co';var et_post_id='423';function et_core_page_resource_fallback(a,b){"undefined"===typeof b&&(b=a.sheet.cssRules&&0===a.sheet.cssRules.length);b&&(a.onerror=null,a.onload=null,a.href?a.href=et_site_url+"/?et_core_page_resource="+a.id+et_post_id:a.src&&(a.src=et_site_url+"/?et_core_page_resource="+a.id+et_post_id))}</script><link href="https://cryptocelebrities.co/content/cache/autoptimize/css/autoptimize_e2a1f60accfd479a249dd040862efe7d.css" media="all" rel="stylesheet" type="text/css"/><title>Robert De Niro | CryptoCelebrities</title><link href="//fonts.googleapis.com" rel="dns-prefetch"/><link href="//maxcdn.bootstrapcdn.com" rel="dns-prefetch"/><link href="//s.w.org" rel="dns-prefetch"/><link href="https://cryptocelebrities.co/feed/" rel="alternate" title="CryptoCelebrities » Feed" type="application/rss+xml"/><link href="https://cryptocelebrities.co/comments/feed/" rel="alternate" title="CryptoCelebrities » Comments Feed" type="application/rss+xml"/><meta content="Crypto_C Beta v.1.0" name="generator"/><link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700" id="et-gf-open-sans-css" media="all" rel="stylesheet" type="text/css"/><link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css?ver=2.0.5" id="nb-front-fa-css" media="all" rel="stylesheet" type="text/css"/><link href="https://fonts.googleapis.com/css?family=Ubuntu%3A300%2C300italic%2Cregular%2Citalic%2C500%2C500italic%2C700%2C700italic%7COpen+Sans%3A300%2C300italic%2Cregular%2Citalic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%7CJosefin+Sans%3A100%2C100italic%2C300%2C300italic%2Cregular%2Citalic%2C600%2C600italic%2C700%2C700italic&amp;ver=4.9.2#038;subset=latin,latin-ext" id="et-builder-googlefonts-cached-css" media="all" rel="stylesheet" type="text/css"/><link href="https://cryptocelebrities.co/vendor/css/dashicons.min.css?ver=4.9.2" id="dashicons-css" media="all" rel="stylesheet" type="text/css"/> <script>if (document.location.protocol != "https:") {
          document.location = document.URL.replace(/^http:/i, "https:");
      }</script> <script src="https://cryptocelebrities.co/vendor/js/jquery/jquery.js?ver=1.12.4" type="text/javascript"></script> <script src="https://cryptocelebrities.co/vendor/js/jquery/jquery-migrate.min.js?ver=1.4.1" type="text/javascript"></script> <script type="text/javascript">var wsp_obj = {"loader":"Loader 1","custom_animation":"","custom_css":"","delay":"300","fadeout":"150"};</script> <script src="https://cryptocelebrities.co/loader/assets/js/wsp-main-script.js?ver=1.11.3" type="text/javascript"></script> <script src="https://cryptocelebrities.co/modules/systems/public/js/web3.min.js?ver=1.0.0" type="text/javascript"></script> <script src="https://cryptocelebrities.co/modules/systems/public/js/ethjs.min.js?ver=1.0.0" type="text/javascript"></script> <script type="text/javascript">var CryptoC = {"ajaxurl":"https:\/\/cryptocelebrities.co\/wp-admin\/admin-ajax.php"};</script> <script src="https://cryptocelebrities.co/modules/systems/public/js/app.min.js?ver=1.0.0" type="text/javascript"></script> <script src="https://cryptocelebrities.co/modules/systems/public/js/sweetalert.min.js?ver=1.0.0" type="text/javascript"></script> <script src="https://cryptocelebrities.co/modules/systems/public/js/toastr.min.js?ver=1.0.0" type="text/javascript"></script> <script src="https://cryptocelebrities.co/modules/systems/public/js/clipboard.min.js?ver=1.0.0" type="text/javascript"></script> <script src="https://cryptocelebrities.co/modules/systems/public/js/marquee.js?ver=1.0.0" type="text/javascript"></script> <script src="https://cryptocelebrities.co/modules/systems/public/js/readmore.min.js?ver=1.0.0" type="text/javascript"></script> <script src="https://cryptocelebrities.co/notification/js/jquery.bxslider.min.js?ver=2.0.5" type="text/javascript"></script> <script src="https://cryptocelebrities.co/notification/js/jquery.ticker.min.js?ver=2.0.5" type="text/javascript"></script> <script src="https://cryptocelebrities.co/notification/js/nb-frontend.min.js?ver=2.0.5" type="text/javascript"></script> <link href="https://cryptocelebrities.co/wp-json/" rel="https://api.w.org/"/><link href="https://cryptocelebrities.co/xmlrpc.php?rsd" rel="EditURI" title="RSD" type="application/rsd+xml"/><link href="https://cryptocelebrities.co/vendor/wlwmanifest.xml" rel="wlwmanifest" type="application/wlwmanifest+xml"/><link href="https://cryptocelebrities.co/marketplace/jack-nicholson/" rel="next" title="Jack Nicholson"/><meta content="WordPress 4.9.2" name="generator"/><link href="https://cryptocelebrities.co/marketplace/robert-de-niro/" rel="canonical"/><link href="https://cryptocelebrities.co/?p=423" rel="shortlink"/><link href="https://cryptocelebrities.co/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fcryptocelebrities.co%2Fmarketplace%2Frobert-de-niro%2F" rel="alternate" type="application/json+oembed"/><link href="https://cryptocelebrities.co/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fcryptocelebrities.co%2Fmarketplace%2Frobert-de-niro%2F&amp;format=xml" rel="alternate" type="text/xml+oembed"/></head><body><div class="signup-overlay" style="display:none"><div class="metamask-locked" style="display:none"><h1>Your MetaMask is locked</h1><p>Simply open Metamask and follow the instructions to unlock it and reload your browser.</p> <img src="https://cryptocelebrities.co/modules/systems/public/css/images/metamask-locked.png"/></div><div class="signup-popup"><h2>Create your trading account</h2><form id="signup"><div class="metamask-wrapper"><div id="before-install"> You’ll need a safe place to store all of your Contract Cards! The perfect place is in a secure wallet like MetaMask.</div><div id="after-install" style="display:none"> Make sure you follow the instructions on MetaMask to finish the installation.</div> <a class="et_pb_button metamask install" href="https://metamask.io/" target="_blank">Install MetaMask</a> <span class="et_pb_button metamask installed" style="display:none">I installed MetaMask</span></div><div class="mobile-wrapper" style="display:none"><div class="instruction"><h1>Oops!</h1> You can only trading on CryptoCelebrities using a desktop browser like Chrome or Firefox. <br/> <a href="/faq/">See our FAQ for more information</a></div></div><div class="signup-wrapper"><div class="form-group"> <label class="control-label" for="username">Username</label> <input class="form-control" id="username" name="username" placeholder="Username" required="" type="text"/></div><div class="form-group"> <label class="control-label" for="email">Email</label> <input class="form-control" id="email" name="email" placeholder="name@domain.com" required="" type="email"/></div><div class="form-group"> <label class="control-label" for="password">Password</label> <input class="form-control" id="password" name="password" placeholder="Password" required="" type="password"/></div><div class="form-group"> <label class="control-label wallet" for="wallet">Wallet Address</label> <input class="form-control" id="wallet-addr" name="wallet" placeholder="0x29D7d1dd5B6f9C864d9db560D72a247c178aE86B" required="" type="text"/></div><div class="form-group"> <button class="et_pb_button btn-signup">CREATE MY ACCOUNT</button><div class="login">Already have an account? <a href="/sign-in/">Sign In</a></div></div></div></form></div> <a href="#"><span class="cc-icon" id="close">Q</span></a></div><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/><link href="https://cryptocelebrities.co/statics/2017/12/favicon-150x150.png" rel="icon" sizes="32x32"/><link href="https://cryptocelebrities.co/statics/2017/12/favicon.png" rel="icon" sizes="192x192"/><link href="https://cryptocelebrities.co/statics/2017/12/favicon.png" rel="apple-touch-icon-precomposed"/><meta content="https://cryptocelebrities.co/statics/2017/12/favicon.png" name="msapplication-TileImage"/><div id="page-container"><header data-height-onload="60" id="main-header"><div class="container clearfix et_menu_container"><div class="logo_container"> <span class="logo_helper"></span> <a href="https://cryptocelebrities.co/"> <img alt="CryptoCelebrities" data-height-percentage="70" id="logo" src="https://cryptocelebrities.co/statics/2017/12/new-logo.svg"/> </a></div><div class="search-container"><form action="https://cryptocelebrities.co/" class="search-form" method="get" role="search"> <input name="s" placeholder="Find your favorite celebrities" required="" type="text" value=""/> <button type="submit">U</button></form></div><div data-fixed-height="60" data-height="60" id="et-top-navigation"><nav id="top-menu-nav"><ul class="nav" id="top-menu"><li class="menu-item"> <a href="/marketplace/?sort=verified">Verified Contracts</a></li><li class="menu-item"> <a href="/marketplace">Marketplace</a></li><li class="menu-item"> <a href="/sign-in">Sign In</a></li></ul></nav><div id="et_top_search"> <span id="et_search_icon"></span></div><div id="et_mobile_nav_menu"><div class="mobile_nav closed"> <span class="select_page">Select Page</span> <span class="mobile_menu_bar mobile_menu_bar_toggle"></span></div></div></div></div><div class="et_search_outer"><div class="container et_search_form_container"><form action="https://cryptocelebrities.co/" class="et-search-form" method="get" role="search"> <input class="et-search-field" name="s" placeholder="Search …" title="Search for:" type="search" value=""/></form> <span class="et_close_search_field"></span></div></div></header><div id="et-main-area"><div class="celebrity" id="crypto-content"><div class="buy-container" style="display:none"><div class="wrapper"><h4 class="title"><span class="celeb-name"></span> contract<span class="cc-icon" id="close">Q</span></h4><div class="before-payment"><p style="font-size:16px">The current buying price for this contract is <strong><span class="current-price"></span> ETH.</strong> <br/>If someone decides to snatch the contract away from you, you will be paid <strong><span class="paid-value"></span> ETH</strong>.</p><form id="payWithMetaMask"> <input id="data-id" name="id" type="hidden" value=""/><div class="payButton"></div><div class="loader" style="display:none"> <svg height="100" id="Layer_1" style="transform-origin: 50px 50px 0px;" version="1.1" viewbox="0 0 100 100" width="100" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px"><g style="transform-origin: 0px -50px 0px;transform: scale(0.76);"><g style="transform-origin: 50px 50px 0px;"><g class="ld ld-heartbeat" style="transform-origin: 50px 50px 0px; animation-duration: 4.2s; animation-delay: -3.9s;"><circle class="st2" cx="18" cy="76.5" fill="#4877ac" r="6.5" style="fill: rgb(72, 119, 172);"></circle></g><g class="ld ld-heartbeat" style="transform-origin: 50px 50px 0px; animation-duration: 4.2s; animation-delay: -3.6s;"><circle class="st10" cx="39.3" cy="76.5" fill="#4877ac" r="6.5" style="fill: rgb(72, 119, 172);"></circle></g><g class="ld ld-heartbeat" style="transform-origin: 50px 50px 0px; animation-duration: 4.2s; animation-delay: -3.3s;"><circle class="st9" cx="60.7" cy="76.5" fill="#4877ac" r="6.5" style="fill: rgb(72, 119, 172);"></circle></g><g class="ld ld-heartbeat" style="transform-origin: 50px 50px 0px; animation-duration: 4.2s; animation-delay: -3s;"><circle class="st11" cx="82" cy="76.5" fill="#4877ac" r="6.5" style="fill: rgb(72, 119, 172);"></circle></g><metadata class="ld ld-heartbeat" style="transform-origin: 50px 50px 0px; animation-duration: 4.2s; animation-delay: -2.7s;" xmlns:d="https://loading.io/stock/"> <d:name class="ld ld-heartbeat" style="transform-origin: 50px 50px 0px; animation-duration: 4.2s; animation-delay: -2.4s;">ellipse</d:name> <d:tags class="ld ld-heartbeat" style="transform-origin: 50px 50px 0px; animation-duration: 4.2s; animation-delay: -2.1s;">ball,type,send,message,comment,ellipse,spinner</d:tags> <d:license class="ld ld-heartbeat" style="transform-origin: 50px 50px 0px; animation-duration: 4.2s; animation-delay: -1.8s;">cc-by</d:license> <d:slug class="ld ld-heartbeat" style="transform-origin: 50px 50px 0px; animation-duration: 4.2s; animation-delay: -1.5s;">pqm8zs</d:slug> </metadata></g></g></svg></div><div class="message"></div></form> <em>*if someone else outbid you during this time, your ETH will be refunded.</em></div><div class="after-payment"><p class="title"><span class="cc-icon">R</span> PROCESSING</p><p style="padding:3">Transaction may take <span style="font-size:27px;font-weight:bold">5</span> to <span style="font-size:27px;font-weight:bold">45</span> minutes to show in your account <br/> <span id="etherscans-url"></span></p><p style="color:#c40606;font-weight:700">If the transaction fails for any reason, your ETH will be refunded automatically.</p></div></div></div> <script>const gasLimit = 90000;
		const ABI = [ { "constant": true, "inputs": [], "name": "promoCreatedCount", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "approve", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "ceoAddress", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address" } ], "name": "payout", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "implementsERC721", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "total", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "transferFrom", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "getPerson", "outputs": [ { "name": "personName", "type": "string" }, { "name": "sellingPrice", "type": "uint256" }, { "name": "owner", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newCEO", "type": "address" } ], "name": "setCEO", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newCOO", "type": "address" } ], "name": "setCOO", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "name": "owner", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "balance", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "tokensOfOwner", "outputs": [ { "name": "ownerTokens", "type": "uint256[]" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "personIndexToApproved", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [], "name": "NAME", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "transfer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "personIndexToOwner", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "cooAddress", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "takeOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "priceOf", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_owner", "type": "address" } ], "name": "createPerson", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "purchase", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [], "name": "SYMBOL", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "name", "type": "string" }, { "indexed": false, "name": "owner", "type": "address" } ], "name": "Birth", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "oldPrice", "type": "uint256" }, { "indexed": false, "name": "newPrice", "type": "uint256" }, { "indexed": false, "name": "prevOwner", "type": "address" }, { "indexed": false, "name": "winner", "type": "address" } ], "name": "TokenSold", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "from", "type": "address" }, { "indexed": false, "name": "to", "type": "address" }, { "indexed": false, "name": "tokenId", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "owner", "type": "address" }, { "indexed": true, "name": "approved", "type": "address" }, { "indexed": false, "name": "tokenId", "type": "uint256" } ], "name": "Approval", "type": "event" } ]</script> <div class="container"><article id="celeb-423"><div class="row"><div class="col-md-4"><div class="card"><h1 class="name">Robert De Niro <a class="badge" data-balloon="This card is NOT endorsed or associated with Robert De Niro. For more information about official verified celebrity accounts click here" data-balloon-length="large" data-balloon-pos="right" href="/verification/">R</a></h1><div class="celeb-img-bg"><div class="celeb-img" style="background-image: url(https://cryptocelebrities.co/statics/2017/12/4573852748_7f4e0b57f2_z-290x290.jpg);"></div></div><div class="frame"><ul class="celeb-meta"><li><span id="left"><b>Price: </b>0.0001</span> <span id="right"> <b>Transactions:</b> 0</span></li><li><span id="left"><b>Owner: </b><a class="owner-card" href="#">None (new)</a></span> <span id="right"><a href="https://etherscan.io/address/0xbb5Ed1EdeB5149AF3ab43ea9c7a6963b3C1374F7" target="_blank">Contract Link</a></span></li></ul><p class="btn-start">Buy this contract</p></div></div></div><div class="col-md-8"><div class="informations"><div class="section"><h3 class="title">Contract details</h3><div class="row"><div class="col-md-6"><div class="divTable"><div class="divTableBody"><div class="divTableRow"><div class="divTableCell"><strong>Current owner</strong></div><div class="divTableCell"> 0xbb5...</div></div><div class="divTableRow"><div class="divTableCell"><strong>Current price</strong></div><div class="divTableCell">0.0001</div></div></div></div></div><div class="col-md-6"><div class="divTable"><div class="divTableBody"><div class="divTableRow"><div class="divTableCell"><strong>Verification</strong></div><div class="divTableCell"> Not yet verified <a class="cc-icon info" href="/verification/" target="_blank">t</a></div></div><div class="divTableRow"><div class="divTableCell"><strong>Next price</strong></div><div class="divTableCell">0.00021 <span class="cc-icon info" data-balloon="The current buying price for this contract is 0.0001 ETH. If you buy it, the next person who wants to snatch the contract away from you will have to pay the contract 0.00021 ETH, out of which 0.0002 ETH will be paid to you." data-balloon-length="xlarge" data-balloon-pos="left" href="#">t</span></div></div></div></div></div></div></div><div class="section"><h3 class="title">Latest transactions<span class="trxs"><a href="#" id="viewall-trxs"> View all</a></span></h3><div class="divTable"><div class="divTableBody"><div class="divTableRow"><div class="divTableCell">Not yet transactions.</div></div></div></div></div><div class="section"><h3 class="title">Celebrity bio</h3><div class="biodata-celebrity"><p>One of the greatest actors of all time, Robert De Niro was born on August 17, 1943 in Manhattan, New York City, to artists Virginia (Admiral) and Robert De Niro Sr. His paternal grandfather was of Italian descent, and his other ancestry is English, Dutch, German, French and Irish</p></div></div></div></div></div></article><div class="transactions-popup" style="display:none"><div class="wrap"><p class="title">Transactions History <span class="cc-icon" id="close">Q</span></p><div class="divTable"><div class="divTableBody"><div class="divTableRow"><div class="divTableCell">Not yet transactions.</div></div></div></div></div></div></div></div><footer id="main-footer"><div class="container"><div class="clearfix" id="footer-widgets"><div class="footer-widget"><div class="fwidget et_pb_widget widget_nav_menu" id="nav_menu-2"><div class="menu-nav-1-container"><ul class="menu" id="menu-nav-1"><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-639" id="menu-item-639"><a href="https://cryptocelebrities.co/how-it-works/">How It Works</a></li><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-169" id="menu-item-169"><a href="https://cryptocelebrities.co/contact-us/">Contact Us</a></li><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-618" id="menu-item-618"><a href="https://cryptocelebrities.co/faq/">Frequently Asked Questions</a></li><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-170" id="menu-item-170"><a href="https://cryptocelebrities.co/terms-of-service/">Terms of service</a></li><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-551" id="menu-item-551"><a href="https://cryptocelebrities.co/privacy-policy/">Privacy Policy</a></li></ul></div></div></div><div class="footer-widget"><div class="fwidget et_pb_widget widget_nav_menu" id="nav_menu-3"><div class="menu-nav-2-container"><ul class="menu" id="menu-nav-2"><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-404" id="menu-item-404"><a href="https://cryptocelebrities.co/account/">My Account</a></li><li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-644" id="menu-item-644"><a href="https://cryptocelebrities.co/sign-in/">Sign In</a></li><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-554" id="menu-item-554"><a href="https://cryptocelebrities.co/bounty-program/">Bounty Program</a></li><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-640" id="menu-item-640"><a href="https://cryptocelebrities.co/verification/">Contract Sign Up</a></li><li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1250" id="menu-item-1250"><a href="/marketplace/?sort=verified">Verified Contracts</a></li></ul></div></div></div><div class="footer-widget"><div class="fwidget et_pb_widget widget_monarchwidget" id="monarchwidget-3"><div class="et_social_networks et_social_1col et_social_flip et_social_rounded et_social_left et_social_mobile_on et_social_withnetworknames et_social_outer_dark widget_monarchwidget"><ul class="et_social_icons_container"><li class="et_social_facebook"> <a class="et_social_follow" data-post_id="423" data-social_name="facebook" data-social_type="follow" href="https://www.facebook.com/cryptocelebrities.co/" target="_blank"> <i class="et_social_icon et_social_icon_facebook"></i><div class="et_social_network_label"><div class="et_social_networkname">Facebook</div></div> <span class="et_social_overlay"></span> </a></li><li class="et_social_twitter"> <a class="et_social_follow" data-post_id="423" data-social_name="twitter" data-social_type="follow" href="https://twitter.com/cryptocelebs" target="_blank"> <i class="et_social_icon et_social_icon_twitter"></i><div class="et_social_network_label"><div class="et_social_networkname">Twitter</div></div> <span class="et_social_overlay"></span> </a></li><li class="et_social_instagram"> <a class="et_social_follow" data-post_id="423" data-social_name="instagram" data-social_type="follow" href="https://www.instagram.com/crypto_celebrities/" target="_blank"> <i class="et_social_icon et_social_icon_instagram"></i><div class="et_social_network_label"><div class="et_social_networkname">Instagram</div></div> <span class="et_social_overlay"></span> </a></li></ul></div></div></div><div class="footer-widget last"><div class="fwidget et_pb_widget widget_media_image" id="media_image-2"><img alt="" class="image wp-image-538 attachment-full size-full" height="258" sizes="(max-width: 747px) 100vw, 747px" src="https://cryptocelebrities.co/statics/2017/12/ethereum.jpg" srcset="https://cryptocelebrities.co/statics/2017/12/ethereum.jpg 747w, https://cryptocelebrities.co/statics/2017/12/ethereum-300x104.jpg 300w" style="max-width: 100%; height: auto;" width="747"/></div></div></div></div><div id="footer-bottom"><div class="container clearfix"><div id="footer-info">Copyright © <a href="/">CryptoCelebrities.co</a></div></div></div></footer></div></div><div class="nb-notice-outer-wrap nb-bottom-outer nb-layout-1-outer"><div class="nb-notice-wrap nb-bottom nb-layout-1"><div class="nb-plain-text-wrap"> Important beta note, <a href="/beta-version-release/"><strong>read me!</strong></a></div> <a class="nb-action nb-close-action" href="javascript:void(0);"> close </a></div> <a class="nb-toggle-outer" href="javascript:void(0);" style="display:none;"><span>Toogle Down</span></a></div> <script type="text/javascript">var et_animation_data = [];</script> <script type="text/javascript">var google_conversion_id = 1054807211;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;</script> <script src="//www.googleadservices.com/pagead/conversion.js" type="text/javascript"></script> <noscript><div style="display:inline;"> <img alt="" height="1" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1054807211/?guid=ON&amp;script=0" style="border-style:none;" width="1"/></div> </noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5TLB9XD');</script> <noscript><iframe height="0" src="https://www.googletagmanager.com/ns.html?id=GTM-5TLB9XD" style="display:none;visibility:hidden" width="0"></iframe></noscript> <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-111526135-1"></script> <script>window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-111526135-1');</script> <script>!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
 fbq('init', '1657489997813626'); 
fbq('track', 'PageView');</script> <noscript> <img height="1" src="https://www.facebook.com/tr?id=1657489997813626&amp;ev=PageView
&amp;noscript=1" width="1"/> </noscript><script src="https://cryptocelebrities.co/social-media/js/idle-timer.min.js?ver=1.3.24" type="text/javascript"></script> <script type="text/javascript">var monarchSettings = {"ajaxurl":"https:\/\/cryptocelebrities.co\/wp-admin\/admin-ajax.php","pageurl":"https:\/\/cryptocelebrities.co\/marketplace\/robert-de-niro\/","stats_nonce":"03d641f4fb","share_counts":"113cc0cbd4","follow_counts":"3fb5948df1","total_counts":"b46a146126","media_single":"518e80d1ff","media_total":"07893fb737","generate_all_window_nonce":"0376174c44","no_img_message":"No images available for sharing on this page"};</script> <script src="https://cryptocelebrities.co/social-media/js/custom.js?ver=1.3.24" type="text/javascript"></script> <script type="text/javascript">var et_shortcodes_strings = {"previous":"Previous","next":"Next"};
var et_pb_custom = {"ajaxurl":"https:\/\/cryptocelebrities.co\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/cryptocelebrities.co\/templates\/images","builder_images_uri":"https:\/\/cryptocelebrities.co\/templates\/includes\/builder\/images","et_frontend_nonce":"255acec93e","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"dfc7c93edc","fill_message":"Please, fill in the following fields:","contact_error_message":"Please, fix the following errors:","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","previous":"Previous","next":"Next","wrong_captcha":"You entered the wrong number in captcha.","is_builder_plugin_used":"","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","is_ab_testing_active":"","page_id":"423","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"no","is_shortcode_tracking":""};
var et_pb_box_shadow_elements = [];</script> <script src="https://cryptocelebrities.co/templates/js/custom.min.js?ver=3.0.97" type="text/javascript"></script> <script src="https://cryptocelebrities.co/templates/core/admin/js/common.js?ver=3.0.97" type="text/javascript"></script> <script src="https://cryptocelebrities.co/vendor/js/wp-embed.min.js?ver=4.9.2" type="text/javascript"></script> </body></html>

In [ ]:
# while this is true (it is true by default),
while True:
    # set the url as VentureBeat,
    url = "https://cryptocelebrities.co/marketplace/colin-quinn/"
    # set the headers like we are a browser,
    headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
    # download the homepage
    response = requests.get(url, headers=headers)
    # parse the downloaded homepage and grab all text, then,
    soup = BeautifulSoup(response.text, "lxml")

    # if the number of times the word "Google" occurs on the page is less than 1,
    if str(soup).find("Google") == -1:
        # wait 60 seconds,
        time.sleep(60)
        # continue with the script,
        continue

    # but if the word "Google" occurs any other number of times,
    else:
        # create an email message with just a subject line,
        msg = 'Subject: This is Chris\'s script talking, CHECK GOOGLE!'
        # set the 'from' address,
        fromaddr = 'YOUR_EMAIL_ADDRESS'
        # set the 'to' addresses,
        toaddrs  = ['AN_EMAIL_ADDRESS','A_SECOND_EMAIL_ADDRESS', 'A_THIRD_EMAIL_ADDRESS']

        # setup the email server,
        # server = smtplib.SMTP('smtp.gmail.com', 587)
        # server.starttls()
        # add my account login name and password,
        # server.login("YOUR_EMAIL_ADDRESS", "YOUR_PASSWORD")

        # Print the email's contents
        print('From: ' + fromaddr)
        print('To: ' + str(toaddrs))
        print('Message: ' + msg)

        # send the email
        # server.sendmail(fromaddr, toaddrs, msg)
        # disconnect from the server
        # server.quit()

        break