allowed_domains = ['mcdonalds.com.sg']
start_urls = ['https://www.mcdonalds.com.sg/locate-us/']

def parse(self, response):
    url = 'https://www.mcdonalds.com.sg/wp-admin/admin-ajax.php'
payload = {'action': 'ws_search_store_location', 'store_name': '0',
    'store_area': '0', 'store_type': '0'}
return FormRequest(url, formdata=payload, callback=self.parse_stores)

def parse_stores(self, response):
    data = json.loads(response.body)
for store in data['stores']['listing']:
    yield McDonaldsItem(name=store['name'], address=store['address'])
Scrapy, scrapping data inside a javascript