google-search

What should be the name of the sitemap file for Google SEO?

旧街凉风 提交于 2019-11-27 08:40:42
问题 I created a sitemap for my website that contains the below code: <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> <url> <loc>http://www.example.com/</loc> </url> <url> <loc>http://www.example.com/aboutus.html</loc> </url> <url> <loc>http://www.example.com/contactus.html<

Does google index pages with hidden divs?

馋奶兔 提交于 2019-11-27 07:36:35
I am starting to redesign and develop a site that contains a lot of text and I am thinking of ways to organize the information on the site so that it looks cleaner. On some parts of the site I would like to implement a jquery toggle effect where some content is placed in a hidden div and that content will show or hide depending on a user's onclick event. Would this technique of organizing content greatly harm the SEO of the site? At what point would google start viewing this as spam and drop the site from being indexed all together? //Update - found some answers. I guess to clarify, as a

Designing a web crawler

半城伤御伤魂 提交于 2019-11-27 04:09:24
问题 I have come across an interview question "If you were designing a web crawler, how would you avoid getting into infinite loops? " and I am trying to answer it. How does it all begin from the beginning. Say Google started with some hub pages say hundreds of them (How these hub pages were found in the first place is a different sub-question). As Google follows links from a page and so on, does it keep making a hash table to make sure that it doesn't follow the earlier visited pages. What if the

sub sitelinks in google search result

不想你离开。 提交于 2019-11-27 03:20:48
问题 I noticed when people get the search result from google, it automatically shows the sub links under the main site link: is that possible if I want to modify the sub menus with my own site as a result in google? Which means when people search for my website, the sub menu of my website is the one that I created? 回答1: Google chooses when Sitelinks are shown for a website. You have no control over when that happens. It usually only happens when a website is very popular and a very obvious choice

google search with python requests library

时光总嘲笑我的痴心妄想 提交于 2019-11-27 02:01:44
(I've tried looking but all of the other answers seem to be using urllib2) I've just started trying to use requests, but I'm still not very clear on how to send or request something additional from the page. For example, I'll have import requests r = requests.get('http://google.com') but I have no idea how to now, for example, do a google search using the search bar presented. I've read the quickstart guide but I'm not very familiar with HTML POST and the like, so it hasn't been very helpful. Is there a clean and elegant way to do what I am asking? Request Overview The Google search request is

Searching in Google with Python

末鹿安然 提交于 2019-11-27 01:10:22
问题 I want to search a text in Google using a python script and return the name, description and URL for each result. I'm currently using this code: from google import search ip=raw_input("What would you like to search for? ") for url in search(ip, stop=20): print(url) This returns only the URL's. How can I return the name and description for each URL? 回答1: I assume you are using this library by Mario Vilas because of the stop=20 argument which appears in his code. It seems like this library is

Google structured data error: “All values provided for http://www.example.com/ must have the same domain.”

懵懂的女人 提交于 2019-11-26 23:32:01
问题 I want to add Corporate Contacts in Google Search. I test the following code in Google's Structured Data Testing Tool, but it threw this error: https://coda-resume.herokuapp.com/ (All values provided for http://www.example.com/ must have the same domain.) Here is the JSON-LD: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Organization", "url": "https://coda-resume.herokuapp.com/", "logo": "http://www.example.com/logo.png", "contactPoint": [{ "@type":

How to launch a google search in a new tab or window from javascript?

怎甘沉沦 提交于 2019-11-26 21:08:11
问题 Say I have a Javascript variable containing a couple of search terms separated by spaces, is it possible to start a Google Search window or tab using these terms (after a user clicks on a button for example)? If yes, does anyone have a simple code example to inject in a HTML? 回答1: The google search URL is basically: https://www.google.com/search?q=[query] Using that you can easily build a search URL to navigate to, f.ex using a simple form without javascript: <form action="http://google.com

Why does Google Search return HTTP Error 403?

岁酱吖の 提交于 2019-11-26 20:13:17
问题 Consider the following Python code: 30 url = "http://www.google.com/search?hl=en&safe=off&q=Monkey" 31 url_object = urllib.request.urlopen(url); 32 print(url_object.read()); When this is run, an Exception is thrown: File "/usr/local/lib/python3.0/urllib/request.py", line 485, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden However, when this is put into a browser, the search returns as expected. What's going on

How can I use a search engine to search for special characters? [closed]

天涯浪子 提交于 2019-11-26 19:16:49
Google strips most special characters from the text they index so it's not a good tool for many troubleshooting-related tasks, such as finding out what the variable "$-" is in perl, or searching for error output that is loaded with special characters. Is there a good way to search for such content on the web? This question is related to the following question: Looking for special characters in Google dncrane This search engine was made to solve exactly the kind of problem you're having: http://symbolhound.com/ I am the developer of SymbolHound. Unfortunately, there doesn't appear to be a magic