I am still handling with a view problems. I am finally able to load the whole page with a view window.scrollBy(..) commands...
The problem I am facing now is that I would like to filter all headlines out of a text. The text I would like to screen is shown with this command:
[Code]
main = driver.find_element_by_id("mrt-node-quoteNewsStream-0-Stream")
print(main.text)
That works well and all the result is shown. Within these results I am now wanna filter, as mentioned above all headlines. This should work wit the following code:
articles = main.find_elements_by_tag_name("mrt-node-quoteNewsStream-0-Stream") # li
for mrt-node-quoteNewsStream-0-Stream in articles:
header = article.find_element_by_class_name("M(0)")
print(header.text)
Unfortunately it shows me the following syntax error message:
File "", line 7
for mrt-node-quoteNewsStream-0-Stream in articles:
^
SyntaxError: can't assign to operator
Line 7 is the one with the following one:
for mrt-node-quoteNewsStream-0-Stream in articles:
Any help is highly appreciated. Thanks