how to scrape the updated date(span elements) from news Link - web-scraping

I tried to scrape the date from the below link. by using the =IMPORTXML(A1,"//span[#class='updated']") but #NA and used all type to do but its not getting please help me out with it. Its help more.
https://timesofindia.indiatimes.com/city/kanpur/balance-diet-exercise-prevents-diabetes/articleshow/95519348.cms
the updated date from the page
and how to scrape the span elemets

Related

how do i merge xpath to scrape reddit posts

i am using a scrapper to scrape reddit posts, i use this scrapper from chrome store
When i scrape similar post titles i get the post titles in text but i don't get the links to the posts, to do that, i have to start over to scrape similar in the date of the post.
I tried posting the post titles in excel so i can paste links beside, but when i do that, The promoted ads have no date attribute, their links are left out.
I need help to scrape post title and its links,

How can I link to a specific search result

I need to scrape specific search results from this website: https://forms.justice.govt.nz/search/TT/
However, after searching for the results, the URL does not change.
Is there some sort of hidden URL that I can find and link to?
Welcome
#mixonic posted a great answer to this over here.
What you need to do is automate some of the actions on your page. You can do this by finding their id or classname, setting a value and triggering the click to submit.
After that you can scrape the result as needed.

Getting 2 products in my woocommerce cart instead of 1

I've been trying to make an amp version of my site
most importantly my product pages
I'm using ampforwp plugin, but as I added the link to add the product to the cart, it just adds two instead of 1, and I couldn't find why
there are no empty links or things that I found on stackoverflow before
link for one of my amp sample versions: http://hashtom.net/product/%DA%AF%D9%84%D8%A7%D8%A8-%D9%BE%D9%86%D8%AC-%D9%85%D9%86-%D8%A7%D8%B9%D9%84%D8%A7%D8%A1-%DB%8C%DA%A9-%D9%84%DB%8C%D8%AA%D8%B1%DB%8C/amp/
btw it's a Persian site but I changed the button names to english so everybody could read them
it would be so nice if someone could help me out with this
thanks in advance

How to view additional pages under google search result

IO just want to show my additional page link like this Google search page result. How to do that easily. I'm using WordPress.
Here is the image link that i need to do. http://i.stack.imgur.com/Yyn8g.jpg
Thank's in advance!
There are 2 types of sitelinks that show up in SERPs: the one you showed and an expanded view. The one that you showed is generated by google and cannot be influenced easily.
Heres a 2009 Post about it:
http://googlewebmastercentral.blogspot.com/2009/04/one-line-sitelinks.html
And here is a discussion on MOZ about it:
https://moz.com/community/q/has-anyone-found-a-way-to-get-site-links-in-the-serps

Scrape links from a website - can't see href

I want to scrape some tables of average house rents in Wellington, New Zealand. There are separate tables for each suburb of Wellington, and each is on its own page. The problem I have is finding the address for each of these pages so I can scrape the tables.
Here is the link to the website I am working on http://www.dbh.govt.nz/market-rent?TLA=Wellington&RegionId=9. To find the links for the suburb pages I used the view page source option in Google Chrome. However, despite being able to click each suburb to see the table of rents, the html doesn't seem to provide links; there is no href.
Could anybody explain how these are links without href? Also, does anybody know a way to find the links for each suburbs table? Ultimately I want to use iterate through a list of suburb urls and use python's BeautifulSoup module to extract the tables of rents.
Kind regards,
Alex
You are right, they are not "links", and in that sense there is no href field in them. Each "link" is actually a form <input> element of type submit. Quite an interesting (and non-standard) way of doing things!
Here are some places to learn more about html forms:
http://www.w3schools.com/html/html_forms.asp
http://www.w3schools.com/tags/tag_form.asp
http://www.tizag.com/htmlT/forms.php
https://en.wikipedia.org/wiki/Form_%28web%29
You will be able to build the complete http request for each suburb table by referencing the parent <form> element, which will contain the url and the submission "method" (either POST or GET), and by determining the request parameters for each "link" from the corresponding <input> element.

Resources