Puppeteer can't browse properly - node.js

I use node application to scrap data using Puppeteer and chromium.
At the beginning everything was fine. I was able to scrap data in
google maps and jump between pages normally. but after 3 days working
on same project (after so many tries.... lunching the bot) things changed.
now when I execute the app, the browser lunch and only first page in google map appears (without any next button ) than the browser stops since it can't query and select the next button. I checked the web document, (no elements changes, same classes, same links ..)
then I used the same link but without a bot by browsing it manually. I find the same page
number my bot did the first time I ran the app.
Didn't understand the secret behind this behavior.
Help, Thanks.

Related

How to change the content and size of the app window that installs the extension

I created a Safari Web Extension using the script that generates the project from a Chrome extension.
My users are confused by the process of buying the app and then running it which just opens a window that does nothing (they keep asking for refunds saying the app doesn't work). So I want to add some more text into the app window that tells them they have to look for the extension in Safari.
I can see how to add the text in the html file called "Main". But in my Mac app this means that the content no longer fits within the apps window. I'm trying to figure out how to change the size of the app window.
Also, the script generates a Mac app with a help menu but it just says that help is not available. How do I go about adding some help to explain that this App does nothing and that the extension is in Safari?
It seems like the script does a lot of the work for you but you still have to learn a bit about developing an App (rather than an extension) to make it a polished experience.

How to change where a url points locally

So I'm on ubuntu and I'm using station, a sort of web app. It grabs some of its icons from a server. However, this server is no longer maintained. Therefore some icons do not display properly and some of the UI is not very usable. So I wanted to know if there could be a way to set locally that when the URLs of that icons are "searched", my computer searches instead a file stored locally on my computer (I was able to grab the URLs so that's dealt with). My next idea would be to try to edit the source code but I'm not should I would be able to achieve that.
Thanks

Opening a read only URL with password

New to Web site dev, though have done a lot of coding of other sorts in the past, just set up a personal blog for my own amusement on bluehost using wordpress and have it installed locally for dev.
I have a training log on another site which anyone can open read-only to view training stats with a URL of the form below, this works fine in a browser:
https://www.othersite.com/logs/1234xyz/authenticate?password=thisismypassword
What I have tried to do unsuccessfully is have this open in a frame on one of my web pages (used iframe/object in html). It seems impossible to do this as the authentication string is not passed across, and the screen displayed prompts for manual input of the password. Can I open this automatically in some way?
If I understood well, your solution is insecure regardless it works or not. In this way your clients can see the password of your (or another) site.
I suggest to query the external content using custom php code and display (print) it on your page.
There are several ways to get content of an external page:
https://www.php.net/manual/en/function.stream-context-create.php
https://www.php.net/manual/en/function.curl-init.php
If you need a tutorial for WP plugins check this out:
https://www.wpbeginner.com/wp-tutorials/how-to-create-a-wordpress-plugin/

Opening a link to download a pdf only works with hard reload and dev tools open

There are a several factors here (Heroku, Node, expressjs, react) as I'm working with a few technologies newer to me, so I'm not sure what the missing piece is.
I have a react/node app that is working for me in my local dev environment (using create-react-app).
My "/" route returns a list of documents, from which I create a list of links. When you click on one, it calls a route that returns a PDF.
This works great locally.
I've deployed it to Heroku and get the following behavior:
Click on link
Instead of opening the PDF, it opens a new tab with the correct URL, but the response is the list of documents instead of the selected PDF.
If I do a hard-reload, I get the same thing.
If I open dev tools in Chrome, I get the same thing.
If I open dev tools AND THEN do a hard-reload, I get the attachment to render!!
If I then do a reload again, it reverts back to showing me the list.
In Edge, I don't need to have dev tools open. Just a hard-reload will render the attachment, but clicking refresh after, brings the list back instead.
Things I've considered:
+ If it were a caching issue, I would expect subsequent reloads to render the PDF, despite whether the Control key were down or dev tools open. Both requests are returning 200, although the one that is not working as expected is returning 200 (from ServiceWorker). The Remote Addresses are also different.
+If it were a routing issue, I wouldn't expect the PDF to ever get rendered properly.
Things I've noticed in hunting this down:
+ The requests are differing
Any guidance is greatly appreciated!
Okay, I've figured it out. The rubber duck helped me :-)
If I don't use https, all is working fine. I'm not sure, however, why dev tools + hard reload allows me to make the request properly.

Opencart Error - cart- register - icons

Basically with Opencart when my site is accessed by my desktop computer it works seamlessly and perfect. When used by a mobile or laptop it generally wont work properly with the same type of error. More specific details:
When trying to register as a new user a dialogue box saying error undefined appears, and as a result the state/region drop down box is empty aswell as many icons do not load. The same error appears when trying to add to cart a product. Is there a way to see a specific error? / more detail of it? It seems sometimes it works great and then a majority of the time on Mobile and Laptop it gets these errors. The desktop computer I used to start the website works perfectly (the website is hosted offshore). Could it be that this might be the result of the hosting I have? I am aware of the broad information but there is not many specifics I can add. Open cart 2.2

Resources