@BrunoAlano what I would do it get a list of a tag's children, and then make keys for each of them. Then iterate through the children, making current the respective dictionary for each tag, and repeat the process
"Python is now the most popular introductory teaching language at top U.S. universities" http://cacm.acm.org/blogs/blog-cacm/176450-python-is-now-the-most-popular-introductory-teaching-language-at-top-us-universities/fulltext
def foo(tag):
current = {}
for child in tag.children:
if child not in current:
current[child] = foo(child)
else:
current[child].update(foo(child))
return current
from collections import defaultdict
def foo(tag):
current = defaultdict(dict)
for child in tag.children:
current[child].update(foo(child))
return dict(current)
@BrunoAlano foo is recursive, so tag would be the top level tag (ie html)
I don't know how you would get the tag in BSoup though
scrappy vs nutch. If I want to scrap structured content from lots of websites. Say 100. Is nutch better or scrapy. I am experienced with scrapy. I am just curious with nutch.
Yeah I saw. I wasn't originally thinking of flagging for one "suspend" but maybe it's best. That way the mods are still involved "all of the time" which probably makes it more likely to succeed as a feature-request
And 4 hours is a perfectly reasonable amount of time. It also means it won't be used as a "time-out" for people along the lines of the JS-style "remove write-access with Caprica Six"
To be honest I'm still not sure when to flag people in chat. It's not as well defined I don't think? Because should you flag someone if they're being disruptive to the chat? What if they're not being offensive/rude/whatever? Is it still flaggable? Being disruptive on the main site it's easy to just ignore them (close the post) but on chat it's more difficult.
And possibly? The amusing thing was that people managed to get him into an off topic conversation about something then everyone told him to take it to Facebook...he didn't get it...
Good band. Much prefered Morning Glory to Definitely Maybe though
Do you know what’a hilarious? Not setting an alarm to have a lie-in. Waking up and thinking “I should get a shower”. Coming back from the shower and realising it’s 6.30…
@JonClements thanks. Not looking right now, but thinking about next year so time to make contacts (I've been in the States for about 20 years now). I do already know a few people in the Python world
£15 customs tax (which I'm happy (well not happy but you get what I mean) to pay) but then Parcelforce charge £14 for the privilege of them charging me the customs tax! When I've already paid delivery for it! grumble
@mamas you want to move a bunch of files and still retain their git histories in the repository?
@MartijnPieters I'd rather not use a recruiter if I didn't have to (haven't used one for forty years ...) and am really looking for contract rather than full-time.
So far they've come up with just one interview, and I wasn't exactly thrilled with the place (startup in London), it gave me more conviction to not accept any positions in central London that require a daily commute.
Now that I am able to talk, may I know the reason? I even contacted the SE team from the footer link but they didn't reply -_- if there's a mod or something I want to talk with you now
I am not partial to all the details, but you were asked to stop pushing about the DDOS, and a room owner asked a moderator to further investigate. The moderator decided to suspend you for 24 hours, you'll have to ask the community team about that. You'll have to be patient about getting a reply there, it's not as if weeks have passed.
It's ok, I stopped talking about the "DDoS" long before I got suspended. What you read in that comment was nothing more than an angry rage because of the suspension.
@holdenweb: He has been suspended for 30 minutes because a message was flagged. It's an automatic process, like closing a spam post, no moderators involved.
He has admitted to regretting the name change. Normally you are stuck with your display name for 30 days.
When they come back, I can help with a work-around for that.
@MartijnPieters melon for the information, good to see 400 is a low rate (I am shocked at British prices nowadays!) By all means keep your eyes peeled, but remember this isn't an urgent (or imminent) requirement for me.
That when someone comes in and asks something so simple that it's obvious they haven't bothered to Google anything and instead they're just being lazy... you wait 15 minutes before replying :P
@jayshahagile welcome to the chatroom. Have you considered writing a question on the main site? While it's possible (albeit unlikely) that someone here knows how your library works, you'll find a much bigger audience if you put together a full question.
The fact that it was downvoted would suggest that it was a poor question to begin with. You could undelete it and then attempt to improve it, hopefully it'll get some attention though.
Be careful though, if you ask a question which is literally "tell me how to do this" or "write this code for me" then no matter how much you "improve" it, it'll still be downvoted.
It's also worth knowing that if you make a habit of asking bad questions then deleting them, you might get banned from asking more - better to try to improve them, if that's possible.
arr me mateys, how does one set the system default of which python to use? I just installed ubuntu and it came with version 2.7.6 and 3.4 and I wanna use 3.4
Actually, just skim-reread the etiquette page ... we could probably do with a bit in there along the lines of "if nobody answers your question, it means they don't know / are too busy to answer. Please don't keep repeating the question; you'll just annoy people".