#!/bin/python
from bs4 import BeautifulSoup
import requests
import sys
a = [] # prazdny zoznam
page = BeautifulSoup(requests.get("http://" + sys.argv[1]).text, "lxml")
for data in page.find_all(sys.argv[2]):
a.append(data.text.strip())
for x in range(len(a)):
print(a[x])
Scrape