I'm new to Zapier. I'm using it with a webhook to my Discord channel to get feeds from a website through RSS. Unfortunately the data I receive is raw HTML. What I need only is to get the src of the <img> tab, which is inside <td> tabs of a <table>. So I need to figure out a way how to scrape the content from <td> tabs.
Can someone provide me guidance on this matter?
Thank you.
Python has a built in library for this (https://docs.python.org/2/library/htmlparser.html) that you can use in a Code by Zapier step https://zapier.com/help/code-python/).
Even though Zapier supports Javascript as well - I definitely recommend Python to do this!
Related
I wish to enhance an existing web page by adding statistics that can be regularly fed by a large amount of people.
I chose to use Google Sheets to retrieve the data so that anyone can access the tables and make their addition but I have no clue of how to display the sheet's results in the concerned web page.
In my case, I'm editing the webpage's text from Javascript.
I thougth of two tools that might help:
Importing the google sheet in Javascript (I can't find how to do that, an alternative would be welcome if not possible)
Importing the google sheet in Python and then exporting its results as an internal .txt file which I should be able to read with Javascript but that would require the .txt file to be updated every now and then.
Could you guys lend me a hand in how to do this?
Thanks in advance!
I’m trying to use IMPORTXML to pull job information from Linkedin into Google sheets. I have a list of job URLs which I hope to pull various elements from the page (job title, description, company profile link etc.) into a spreadsheet. No matter what I try, I can’t get it to pull anything.
As far as I can see, the below formula looks correct but it returns a “Could not fetch URL” error
=IMPORTXML("www.linkedin.com/jobs/view/585970109","//*[#id='job-details'])")
Any ideas of what I’m doing wrong would be greatly appreciated.
Thanks
I will give tip may helps you. inside IMPORTHTML() built-in function it use urlFetching so it get results of the page without Compiling JavaScript because it just Http request who compile JavaScript is the browser. if you go to Linkedin site settings and disable JavaScript and reload, Data in page won't appear and most of sites do that to protect their data from that things.
I have a highcharts chart in a div. I want to make it easy for users to tweet it out. How could I do this? I was thinking of a screenshot gem then integrate the twitter API. Is this possible? Or is there a better way? Thank you.
You could render the image server side, and then share it out via some client side JS tools such as Share This.
Render HighCharts on the server: http://www.highcharts.com/docs/export-module/render-charts-serverside
Once you have the image, use it for sharing by including it in your HTML.
Share This docs: http://support.sharethis.com/customer/portal/articles/475079-share-properties-and-sharing-custom-information#sthash.QCmTvDs6.dpbs
This may be a slightly different approach than what you were looking for, but it works.
I was wondering how the website, http://socialblade.com indexed YouTube channels and extracted their daily views so the could input them on their website.
I can't provide much more detail because i'm unsure of how their process actually works.
How would i go about doing/creating something similar?
Maybe too late... but you can google "web crawling" or "web scraping". It's a technique to extract data from any web site. There are several tools to help you to do it. Try it.
Bye
I have been using LabVIEW to collect measurement data, and I would like to know if it is possible for LabVIEW to communicate the results to a Google Spreadsheet. If so, where could I find resources to learn how to make LabVIEW transmit information to the Google Spreadsheet ?
Thanks!
EDIT AND FOLLOW-UP- I used Jonathan's suggestion below and experimented with the LabVIEW http Post.vi. It's very simple, all you need to do is enter the URL of the Google form (replacing the final "viewform" with "formResponse") and a string with the data you want to enter (with rough syntax = ). A big thanks for that answer, it was really helpful !
However, when I try to use this method for a Google form with more than one page, the data isn't read properly... The form is still sent but every field not present on the first page of the form remains blank on the Spreadsheet. I feel that this is somehow linked to the fact that in the Google form, the URL of all the pages after page 1 are the URL of page 1 with the final "viewform" replaced with "formResponse". Is this what is causing the error or is it something else altogether, and how can I fix it ?
I can think of two ways to do this:
You can create a form in google spreadsheets. The form appears as an html document with standard tags. From here, I would use labview's http functionality to submit data to that form using a POST request. This would be the easiest way to get data in there.
Using the Google Apps API, you can manipulate google spreadsheets and dump data in there directly. This is going to be more complicated in terms of development time, but more configurable in the long run. https://developers.google.com/google-apps/spreadsheets/#what_can_this_api_do There are .net and java code examples throughout the documentation, so it would take some work to port this to LabVIEW, but it could be done.