I am trying to download search queries using the Google Webmaster and following simple steps.
example-simple-downlaod.py I get the following error
sites_json = json.loads (available) file "/usr/lib/python2.7/json/__init__. Py ", line 338, returned to the load _default_decoder.decode (s) file" /usr/lib/python2.7/json/decoder.py ", line 366, decoded obj, end = self.raw_decode (s, IDX = now only in standard (s, 0) .end ()) file "/usr/lib/python2.7/json/decoder.py", line 384, valueError in raw_decode ("No JSON object can be decoded Is ") ValueError increased: No JSON object may be decoded
I have followed all the steps I have any suggestions And appreciated when I try to print from either Outputs me down.
& lt; HTML & gt; & Lt; HEAD & gt; & Lt; TITLE & gt; Temporarily moved & lt; / TITLE & gt; & Lt; / HEAD> & Lt; BODY BGCOLOR = "#FFFFFF" TEXT = "# 000000" & gt; & Lt; H1 & gt; Temporarily moved & lt; / H1> The document has been moved and lt; A href = "https://www.google.com/webmasters/tools/downloads-list?siteUrl=http://myurl.com+&hl=en" & gt; Here & lt; / A & gt; & Lt; / Body & gt; & Lt; / Html & gt;
Update
I am using Ubuntu 14.04 and Python version is 2.7.6. While trying to set up Google data python libraries, I am following the steps in the guide and I am getting the following error while performing the tests to check dependency and installation.
All tests in module atom_tests.mock_http_test F are running .. = =================================== ================================== FAILURE: testRecordResponse (atom_tests.mock_http_test.MockHttpClientUnitTest) ------ --------------- ----------------------------------- -------------- Trace back (Recently Called on Take): File "/home/username/Documents/googlewebmaster/gdata-2.0.18/tests/atom_tests/mock_http_test.py", line 49, testRecordResponse self.assertEquals (live_response.status, 200) in AssertionError: 301! = 200 ---------------------------------------------- ----------------------
All other tests are going well I
Example of the use of search query downloader Python Script 1) If Python is not already installed on your machine Download and install Python.
2) Download and install the Google Data API Python Client Library.
3) Create a folder and add the downloader / script to the newly created folder.
4) Example- create-spreadsheet.py Copy the script to download in the same folder and edit it to change the "Example values of the website," "email" and "password" on your With Valid values of Webmaster Tools verified site.
5) Open a terminal window and enter the example - create - spreadsheet.py script by entering "python
example-create-spreadsheet.py" on the terminal window command line < / P>
Note: Use fully qualified domain example: if it does not try with trailing slash Example:
Comments
Post a Comment