Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I volunteer at nonprofit, and we currently run our website through Squarespace. We have hundreds of web pages set up to sponsor our children. Every few months when we want to update their personal information, we have to go into each web page and retype all the information. We keep all our information in a google excel sheet.
My question is: Am I able to link cells from the Google Sheet to specific values on each child's webpage? That way, when the excel sheet is updated (favorite activity, favorite color, grade, age...etc.), it can all be updated through the Google Sheet instead of having to first update the Google Sheet, and then updating each individual webpage. I've been researching this for days now, and I feel like it may be possibly with JQuery, but I feel very limited with Squarespace's capabilities. Thanks!
The short answer is yes.
You can use a google sheet as a database for any application, update and manipulate data.
I have been doing that for a long time now. Google has recently released its Google Sheet API V4 (the current) the last version.
I followed this tutorial: https://developers.google.com/sheets/guides/concepts
. On the left panel, you can choose the programming language you wish to develop under Quickstart.
It supports:
PHP.
Android.
Java.
Node.js.
Python.
Ruby.
Perl.
Go
iOS
.NET
The trick is that you need to set an ID for each record which refer to the line number. Your column should also be fixed. This is because queries in Google Sheet API refer to the column number and row number. (Known as index).
You can check the following repository that i once used to do this same thing.
https://github.com/souparno/google-sheet-database
Some of the api calls might be old and needs to be updated.
this is a quick answer, i will update more when i get some time
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 days ago.
Improve this question
I'm in need of automatically getting reviews from a job posting page for my client. The problem is that it's a medium sized, local website without a public API. Are there any ways to automatically update your website based on information from another website? It'd consist of rating, name of reviewer, message + date
A library like Puppeteer is a premium choice for this if you're wanting to stick with Node.js. When you scrape just be sure you consider the website's Terms of Service that you're scraping - but I've used Puppeteer for this purpose and it's generally very simple and convenient.
You use DOM selectors as you would with Javascript and then can grab text or metadata attribute values wherever you want.
Then you just need to be careful with how you run these crawlers to not abuse the website. One crawl per 1-minute is probably a minimum if I were to guess but it's up to you!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I know that this question is kinda weird but I have a CRM platform integrated with a MySQL database.
In this way, each new row in the MySQL database is a lead in the CRM system but now I need to track all information related with source, ect... from that lead and seems like a complicated task but don't really know if is possible.
I have hours looking for a solution and still haven't found anything useful.
You have to replicate programmatically what Google Analytics do and save value in cookie or database.
For example, when user lands on website with UTM in the URL you can get that values, if there aren't UTM you can check if there is gclid parameter in the URL so it will be google / cpc, if there isn't that parameter you can check document referral, if it is google.com your source and medium will be google / organic, alternatively website / referral.
You save the data the first time and pass it in the form. This is the principle makes use of.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to make a list of the most viewed posts in the last month. I found almost zero info about this.
Is it possible? Can it be done using Google Analytics or something?
I don't think this can be done with the built-in toolset of Ghost. Since I have found almost zero info about this like you, I decided to create my own implementation.
First, you have to integrate GA tracking to your site. Here's more info on how to do that:
https://help.ghost.org/article/16-google-analytics
I created a custom Ghost helper to download Google Analytics metrics. Please note that setting up a custom helper is unfortunately not very well documented and definitely not supported.
Here's the Github repository with the source code: https://github.com/conwid/GhostHelpers
Check out the project's wiki.
There information on how to set up a custom helper: https://github.com/conwid/GhostHelpers/wiki/Adding-a-custom-helper-to-Ghost
And there's information on how to set up the Google Analytics helper specifically: https://github.com/conwid/GhostHelpers/wiki/Top
I have also written a couple of blog posts about this that could give you more info:
Create custom helpers to add functionality to your Ghost blog
Creating a most popular posts page with a custom ghost helper to download Google Analytics data
And finally you can check out the end results of using the helper on my blog: https://dotnetfalcon.com/greatest-hits/
(Sorry for the shameless self-marketing, but as I said, I found almost zero info about this also everywhere else).
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I've tried a lot of ways, like for example the fs module, but I just can't find out how to implement this. I need a button that:
Updates by one whenever any user presses the button
Persists on the server
Does anyone know how to do this?
If you are new and need to build something that stores stuff on the server you have a lot to learn. If you just need to solve this simple problem and get things working you could make huge progress using a hosted backend service. If you do this you can write a couple of lines in JS and the job will be done. Most offer a free account.
One such service is built.io see link below:
https://docs.built.io/api-reference
var project = Built.App('blt5d4sample2633b').Class('score').Object();
project = project.increment('points',10); //Increases points field value by 10
That code above would update the score by 10 and store it , you can then retreive it when you show the page. All users would see the score update.
There are realtime backend services too which are very good.
An example is:
www.firebase.com
You would need to decide which one is best for you, add their script to your page add a button, hook the click event upto a function that you would then add the simple code to update the score. See above.
It a nutshell that would be it. You can probably get it working in under 1 hour if you follow the guides on the vendors site.
Firebase is backed by google and has a huge online community.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm required to implement a notification system integrated to a web application (JavaScript + PHP). Notifications should be fired based on user-defined rules. I don't have experience with rules engines and building rules. Therefore, I don't know what I'm doing or if what the following could be implemented by better solution.
I'm trying to figure out how to store and process the following hypothetical scenario. Let's say that the web app is a shopping online service for a store that has 3 lines of products, line A, line B and line C. Each line has different characteristics. User#1 selects an object from line A, then specifies some characteristics such as size and colors. User#2 selects an object from line B, the only characteristic for this kind is material, he selects wood. Then both users ask system to notify them whenever these objects with these characteristics become available.
From what I've read so far, this could be done through [user-defined rules]. If so, then
What's the best technology to handle it? I'm willing to learn but I need a direction to help me start.
Can I use openRules or similar for this?
How to sent user defined data to a web service? given that they change based on the line.
If you are using a database, or anything similar, you can make a table where you would save the rules for each user. You can than later load them with a php class as soon as the user logs in, and check against them before doing anything that was optional.
You can also make a table and set flags, once an item becomes available loop trough the table and notify every user waiting. You would need to store, item id and customer id, in the table and delete them once they have been notify.