I'm trying to create an index page of a Google document using Google Docs API.
The index is a list of chapters and the page number of the chapter.
For example:
Chapter 1: A Long-expected Party ... 1
Chapter 2: The Shadow of the Past ... 21
Chapter 3: Three is Company ... 54
(Whereas 1, 21, 54 are page numbers)
I got the content of the document so far, however, the page number seems to be not included.
Is there any workaround?
Thanks 🙏
Reference:
Google Docs API: https://developers.google.com/docs/api/reference/rest/v1/documents#Document
Related
There is a website on which products are presented.
I wanted to import all products with prices and articles into a Google table via IMPORT XML.
But it turned out so far only to collect all possible pages in a separate column E:E (=IMPORTXML("https://dg-trade.ru/catalog/";"//li[#class='sect']/a/#href" ))
The problem arises due to the fact that not all products on the page are shown on the site, and they need to be loaded as they scroll. How can this be circumvented?
As a result, I would like to get a table like on sheet 2.
Link to the table: https://docs.google.com/spreadsheets/d/1rD8jJujaAe9Yz2uBB_4IMTcUs_oQFrF88ydmEIiXCsg/edit?usp=sharing
The table will be like this (for example, line 5 on sheet 1):
Name
Qty
Art
Price
Масло моторное LUKOIL AVANTGARDE ULTRA 15W-40 (на розлив)
Много
4001/1703
760 руб./л.
Right now I am scraping certain Productinformation from bol.com.
The product data is getting scraped. But for each 30 products, about 5 are either scraping incomplete data, for instance the EAN is missing, while its in the same content block as normal or it just gives N/A. While there is information.
Any tips?
Ps. This is my current formula: =importxml(C27;"//*[#id='mainContent']/div/div[1]/div[5]/div[1]/div[4]/div/div/div[1]/div/div[1]/dl")
C27 is the URL. (https://www.bol.com/nl/nl/p/adroitgoods-hondenriem-180-cm-hondenlijn-looplijn-hondenlijn-reflecterend-rood-lange-lijn-hond/9300000101425619/)
It should import the following product information:
EAN
Kleur
Materiaal
Maat
Reflecterend
Speciaal voor hardlopen
Type uitlaatriem
Verpakkingsinhoud
try:
=INDEX(TRIM(IMPORTxML(A1, "//dl[#class='specs__list']/div")))
I am trying to get a specific Number from an URL, which is hyperlinked on the website.
Please see here a copy of my spreadsheet.
In Row "I" - i did a code, so it will directly go the the search of the eBay website, and combines the EAN number ="https://www.ebay.de/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw="&""&D2
this is the outcome:
https://www.ebay.de/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=8713439712292
Till here it works.
On the page, i want the ebay Kategorie ID for that articel, which can be found as a Hyperlink on the Categories [See Image of eBay Categorie here] Navigation on the left.
In the URl it is always the first Number, eg. https://www.ebay.de/sch/**158817**/i.html?_from=R40&_nkw=650135421227
InspectCode URL I need
All I want know, is to put the Number 158817 in my google spreadsheet.
With this code
=IMPORTXML(I2;"//*[#id='x-refine__group__0']/ul/li/ul/li/ul")
I only get the categorie name, but I need the number to make my CSV upload work.
What code do I need? Can Someone please guide me?
thank you
Lisa
With A1 = https://www.ebay.de/sch/**158817**/i.html?_from=R40&_nkw=650135421227, try this
=regexextract(IMPORTXML(A1;"//*[#id='x-refine__group__0']/ul/li/ul/li/ul/li/a/#href");"[0-9]+")
assuming that the url is always at the same position in the nomenclature
or, to get all numbers
=arrayformula(regexextract(IMPORTXML(A1;"//*[#id='x-refine__group__0']/ul/li//a/#href");"[0-9]+"))
I have two ImportHTML functions in my sheet, pulling data from different websites. The result is two different (yet very similar) lists of NCAAB teams and their scores. I am trying to vlookup the scores in List 2 based on the school name (without mascot) in List 1. See below:
Example
List 1 = Indiana
List 2 = Indiana Hoosiers
Example 2
List 1 = Duke
List 2 = (3) Duke Blue Devils
Here is a link to a google sheets doc where I am working.
https://docs.google.com/spreadsheets/d/1nx5RaO5mSKVq_LlWTwrMtuHsqjb69W4_Rzan4Q5HjR0/edit?usp=sharing
Thank you & let me know if more info is needed,
Greg
I figured this out. Instead of "cleansing" list 2, I just created a reference table linking the name in list 1 to the name in list 2 and doing a vlookup off that.
Thank you.
i am developing an app in iOS to search any word in google search engine ,,,,
currently i am using this url to retrive the results which will be returned in JSON form
http://ajax.googleapis.com/ajax/services/search/web?num=100&v=1.0&q=
where q is the key word to search about it ,,,
the problem is every time i am trying to search it just return 4 results ,,, how i can increase the results to more than 4 ,,,
and another thing ,, how to access the result pages like 1 2 3 ... in the url (i think its a parameter in the same url).
thanks ..
The arguments you're looking for are:
http://ajax.googleapis.com/ajax/services/search/web?v=1.0&gl=de&q=test&rsz=8&start=5
/ /
result set size (1-8) /
/
page offset
For more, see the corresponding documentation.
Also, keep in mind that this API is deprecated!