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 bs4 import BeautifulSoup | |
import requests | |
import random | |
import pandas | |
from random import randint | |
from time import sleep | |
targetURL = "https://www.zoopla.co.uk/for-sale/property/edinburgh/" | |
headers = {"Accept-Language": "en-GB, en;q=0.5"} | |
results = requests.get(targetURL, headers=headers) |
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 random | |
# global variables | |
suits = ('Hearts', 'Diamonds', 'Spades', 'Clubs') # Tuples | |
ranks = ('Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Jack', 'Queen', 'King', 'Ace') | |
values = { | |
'Two':2, | |
'Three':3, | |
'Four':4, | |
'Five':5, | |
'Six':6, |