Hi Aaron!
This is a little embarrassing, I was pretty sure I've also tried to
include the EOL character but I've used slash /n instead of backslash
\n.
So no bug, only the syn-tax barking at me again.
Learning a new language, like Finnish or Python, is hard for an old
man with a hard head.
However, once you learn some then it feels better to learn more.
I have an other little problem more related to Python than
BeautifulSoup.
I'm trying to save data to a list from within a loop
It's printing nicely on the screen all the parents, spouses and
children to "my ancestor" but I've not yet figured out how to save the
data.
...
index = n = 0
for i in x:
for index in range(len(x2)):
n = n + 1
name = i.contents[0]
id = i.get("href").split("=")[-1]
id = int(id[1:])
print "%d: [%s] %s" % (n, id, name)
# save_data[n] = n, id[n], name[n]
...
I've got help also with this loop from a friend but my last line
obviously don't work, but maybe explains what I try to do.
Thanks', we just call it the independence day and is traditionally
celebrated with two candles in the windows for average people and a
big ball at the president's castle for the elite and the more or less
famous celebrities. Most women in the country are watching the ball at
TV and comparing ladies dresses and hairstyles.
Thank's for your kind help Aaron,
Bo
On Dec 6, 11:59 pm, Aaron DeVore <
aaron.dev...@gmail.com> wrote: