How to make google default search results python3 docs

I like to use Google when I am looking for documentation on things related to python. Many times what I'm looking for appears in the official python documentation at docs.python.org. Unfortunately, at the time of writing, documents for the python 2.x branch tend to take up much more space on google than the 3.x branch, and I often have to switch to the 3.x branch after loading the page for 2.x. The docs.python.org designers made it easy to transition between versions of python, which is great; but I just find it annoying to switch python versions and wait for an extra page load every time I follow a link from Google.

Has anyone done anything to combat this? I would like to hear your decisions.

Here is what I have tried so far:

  • clicking on the python 3.x link further - this sometimes works, but often the mismatch in the ranking between the 2.x and 3.x results is quite large, and 3.x things are hard to find.
  • copying the URL from the search result and manually replacing 2 with 3 - this works, but also inconvenient.
+8
google-search
source share
2 answers

Often when searching for Python files, I add the search term β€œpython” anyway, because many names refer to completely different things in the world. Using "python3" here helps solve your problem. I also feel that this is much less unobtrusive than the hacks you describe.

+1
source share

I would suggest adding a custom search for python3 documents if your browser allows (works in firefox), which will automatically add site = and domain = to the google search query and show only py3 links.

The specific search query I'm using is:

https://www.google.com/search?sourceid=Mozilla-search&domains=docs.python.org&sitesearch=docs.python.org/3&q={searchTerms} 

(firefox replaces {searchTerms} with what was printed as a search query)

0
source share

All Articles