from grab import Grab

domen = "http://w...content-available-to-author-only...r.org"
link = "http://w...content-available-to-author-only...r.org/top"
monitoring_text = "Ex Machina"
raw_torrent_links_css_selector = "a[href^='/torrent/']"
found = {}
count = 1

g = Grab()
g.go(link)
raw_torrent_links = g.css_list(raw_torrent_links_css_selector)

for torrent in raw_torrent_links:
	if torrent.text != None and (torrent.text.lower()).find(monitoring_text.lower())!= -1:
		torrent_page = domen+torrent.attrib['href']
		print(torrent_page)
		link_to_torrent_file = torrent(torrent_page, g) # TypeError: 'HtmlElement' object is not callable. отдельно работает нормально
		found[count] = [torrent.text, torrent_page]
		count += 1

def torrent(url, grab_obj):
	grab_obj.go(url)
	rawtorrent = grab_obj.doc.select("//div[@id='download']/a[2]")
	return rawtorrent.attr('href')