Bitcoin Forum
June 22, 2024, 12:01:50 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Digital goods / Python wait before returning contents of web-page on: March 30, 2018, 11:56:04 AM
I'm trying to scrape this website: http://www.fivb.org/EN/BeachVolleyball/PlayersRanking_W.asp , but this page loads the contents of the tabel (probably through ajax), after the page has been loaded.

My attempt:

import requests
from bs4 import BeautifulSoup, Comment
uri = 'http://www.fivb.org/EN/BeachVolleyball/PlayersRanking_W.asp'

r = requests.get(uri)
soup = BeautifulSoup(r.content)
print(soup)
But the div with the id='BTechPlayM' remains empty, regardless of what I do. I've tried:

Setting a timeout on the request: Python requests.get(uri, timeout=10)
Passing headers
Using eventlet, to set a delay
And the latest thing was to try and use the selenium-library, to use PhantomJS (installed from NPM), but this rabbit-whole just kept going deeper and deeper.
Are there a way to send a request to a URI, wait X seconds, and return the contents then?

... Or to send a request to a URI, keep checking if a div contains an element; and only return the contents, whenever it does?
2  Economy / Service Discussion / Will Blockchains truly soon be a Piece of our regular Daily Existences? on: March 22, 2018, 06:29:33 AM
As indicated by specialists, there are as yet a couple of bugs to work out first. Extending a framework is especially troublesome, and when the quantity of exchanges in a system increments quicker than the accessible figuring force can deal with, information jams happen. This is a commonplace issue to any individual who has ever utilized Bitcoins. The digital currency acquainted an exchange charge with avert information jams caused by an over the top number of little exchanges, taking out the semi free exchange advantage Bitcoin clients so prized. In summer 2017, the normal exchange charge had ascended to very nearly seven euros.

Blockchains are additionally ease back contrasted with Mastercard exchanges. The quickest digital forms of money can deal with a greatest of 20 exchanges for each second, and Bitcoin just three to seven. Very little when you consider that Visa forms a noteworthy 1,700 exchanges each second in the USA. Blockchains are likewise extremely vitality concentrated. Appraisals fluctuate generally, however as a rough approximation, one cryptanalyst, Alex de Vries, ascertained around 222 kilowatt hours for a solitary Bitcoin exchange in November 2017. This generally compares to the month to month control utilization of a solitary individual family unit in Germany, and Mastercard exchanges are around ten-thousand times more effective today.

From a security stance, the alleged '51 percent' assault is the most striking potential danger to blockchains. In spite of the fact that the decentralized system secures against outside assaults, the framework could be captured from within. On the off chance that somebody figured out how to pick up control over the greater part – 51 percent – of a blockchain system's processing power, they could control or erase exchange information voluntarily, from a certain perspective. So the peril for blockchains is more averse to originate from feeble connections than from those undermining to become excessively solid.

With or without these apprehensions, blockchains still can possibly change the eventual fate of business, correspondences and organization. There is a justifiable reason banks are putting billions in look into the innovation and outfitting to dispatch their own particular digital currencies. It isn't yet conceivable to state without a doubt whether blockchains will demonstrate helpful outside of installment applications however. A few specialists are notwithstanding anticipating that a more up to date innovation – the purported tangle – could soon surpass the blockchain. As indicated by advancement groups testing the framework utilizing the lota digital currency, tangles could offer free exchanges that are quicker, and more steady and secure. Yet, rest guaranteed, while it may feel like it's all moving much too quick, we have far to go before blockchains and tangles make genuine advances into our regular day to day existences.
3  Bitcoin / Bitcoin Discussion / Counteracting copy blockchain assault on: March 13, 2018, 09:36:28 AM
Trusting somebody can enable me to answer an inquiry in regards to a potential assault that could happen with a blockchain.

Assume Alice is endeavoring to assault Bob by sending him false blockchains. In this situation, assume Alice needs to more than once send a blockchain that records that Bob owes Alice $10, and she has effectively discovered a proof of work that makes a fitting hash.

What is there to prevent Alice from taking this square, and broadcasting it over and again to Bob so that on his side, he sees a developing blockchain, each with a record that he owes Alice?

From what I comprehend, the way that the "genuine" blockchain is resolved is by a matter of size. So as long as Alice communicates her phony piece to Bob rapidly enough, wouldn't her records seem, by all accounts, to be the right blockchain that Bob would then need to acknowledge?
4  Alternate cryptocurrencies / Altcoin Discussion / Retrieving request information form ServiceNow via API on: March 02, 2018, 05:44:20 AM
Within our ServiceNow installation we have created a simple new Request form with two text input values. The form looks something like this:

+--------------------------------------------------------+
| Get new Computer-request                               |
+--------------------------------------------------------+
| model: <text input field>                              |
+--------------------------------------------------------+
| organization: <text input field>                       |
+--------------------------------------------------------+
At the point when another demand has been made utilizing this frame, we can recover all important data utilizing the ServiceNow table API, by questioning the accompanying tables:

sc_req_item

sc_item_option_mtm

sc_item_option

sc_cat_item

When issuing these REST calls we need to utilize a few channels to explore starting with one table then onto the next and to just get the latest things and just the demand things inside our administration inventory classification.

In a perfect world, we might want to spare the whole demand (timestamp, client, input esteems) as a JSON String inside a solitary table. Along these lines, we would just need to question this single table to recover all important data for a demand.

Does ServiceNow bolster producing/sparing a solitary JSON record from ask for frame?

Any assistance is very valued.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!