Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • Careful with this - if there are no parameters (no "&"), it will just drop the last character from the url. Commented Nov 3, 2008 at 14:38
  • See stackoverflow.com/questions/229352/python-find-question for a better solution. Commented Nov 3, 2008 at 14:42
  • Ah I see how that could be a problem and thanks for the warning. The list I am using always has a parameter after it but I will keep that in mind for the future. :) Commented Nov 3, 2008 at 14:45
  • Be careful with url parsing, this most of the time not as easy as it seems. You'd better use the urlparse module, even if it looks like it's easy. Commented Nov 3, 2008 at 15:37
  • @Eef: Always means "mostly". Never means "Rarely". As soon as you say "Always", you know it will break because 2 of 14,000 violate your "always" rule. Commented Nov 3, 2008 at 15:45