Open Azwonson opened 2 years ago
:tada: You're now the proud manager of this issue! Now that you've assigned yourself, people who drop by know that they're welcome to participate, but you'll be carrying this issue across the finish line. :sunglasses:.
Now, on to business! GitHub Pages allow you to serve a static site from a repository. We've filled this repository with some site content, but the rendered site isn't visible right now. Let's change that.
Note: Even though you'll see an option to choose a theme, do not apply a theme at this point. We've protected the code so you can't make unintended changes. You'll have the opportunity to apply a theme when the course is completed.
Turning on GitHub Pages creates a deployment of your repository. I may take up to a minute to respond as I await the deployment.
Lol if any one see this I just copied & paste still learning
{ "error": null, "data": { "title": "Apple iPhone XR 64GB Red Unlocked A2105 GSM SEALED BOX- 1 Year Apple Warranty", "description": "Apple iPhone XR. 1 YEAR APPLE CARE WARRANTY.", "image": "https://www.scraping-bot.io/iphone_example_ebay_files/s-l500.png", "price": 689, "shippingFees": 18, "currency": "GBP", "isInStock": true, "EAN13": "0190198770660", "ASIN": null, "ISBN": null, "color": "White", "brand": "Apple", "category": { "name": "Mobile & Smart Phones", "url": "https://www.ebay.co.uk/b/Mobile-Smart-Phones-/9355" }, "categories": [ { "name": "Mobile Phones & Communication", "url": "https://www.ebay.co.uk/b/Mobile-Phones-Communication-/15032" }, { "name": "Mobile & Smart Phones", "url": "https://www.ebay.co.uk/b/Mobile-Smart-Phones-/9355" } ], "siteURL": "https://www.ebay.co.uk/itm/Apple-iPhone-XR-64GB-Red-Unlocked-A2105-GSM-SEALED-BOX-1-Year-Apple-Warranty-/123902112947", "siteHtml": null, "productHasVariations": null, "error": null, "statusCode": null, "isFinished": null, "isDead": null, "htmlLength": 128016 } }
var request = require('request');
var username = "yourUsername", apiKey = "yourApiKey", url = "https://www.scraping-bot.io/rawHtmlPage.html", auth = "Basic " + Buffer.from(username + ":" + apiKey).toString("base64");
request( { method: 'POST', url: 'http://api.scraping-bot.io/scrape/raw-html', json: { url: url }, headers: { Accept: 'application/json', Authorization : auth }, }, function(error, response, body) { console.log(body); } );
Here is my title
This is the content of my paragraph
var request = require('request');
var username = "yourUsername", apiKey = "yourApiKey", url = "https://www.scraping-bot.io/rawHtmlPage.html", apiEndPoint = "http://api.scraping-bot.io/scrape/raw-html", auth = "Basic " + new Buffer(username + ":" + apiKey).toString("base64");
request( { method: 'POST', url: apiEndPoint, json: { url: url, options: { useChrome:false, //set to 'true' if you want to use headless chrome for javascript rendering premiumProxy:false, //set to 'true' if you want to use premium proxies Unblock Amazon,Google,Rakuten proxyCountry:null, //allows you to choose a country proxy (example: proxyCountry:"FR") waitForNetworkRequests:false, //wait for most ajax requests to finish until returning the Html content (this option can only be used if useChrome is set to true), //this can slowdown or fail your scraping if some requests are never ending only use if really needed to get some price loaded asynchronously for example } }, headers: { Accept: 'application/json', Authorization : auth }, }, function(error, response, body) { console.log(body); } );
{ "error": null, "data": { "title": "Apple iPhone XR 64GB Red Unlocked A2105 GSM SEALED BOX- 1 Year Apple Warranty", "description": "Apple iPhone XR. 1 YEAR APPLE CARE WARRANTY.", "image": "https://www.scraping-bot.io/iphone_example_ebay_files/s-l500.png", "price": 689, "shippingFees": 18, "currency": "GBP", "isInStock": true, "EAN13": "0190198770660", "ASIN": null, "ISBN": null, "color": "White", "brand": "Apple", "category": { "name": "Mobile & Smart Phones", "url": "https://www.ebay.co.uk/b/Mobile-Smart-Phones-/9355" }, "categories": [ { "name": "Mobile Phones & Communication", "url": "https://www.ebay.co.uk/b/Mobile-Phones-Communication-/15032" }, { "name": "Mobile & Smart Phones", "url": "https://www.ebay.co.uk/b/Mobile-Smart-Phones-/9355" } ], "siteURL": "https://www.ebay.co.uk/itm/Apple-iPhone-XR-64GB-Red-Unlocked-A2105-GSM-SEALED-BOX-1-Year-Apple-Warranty-/123902112947", "siteHtml": null, "productHasVariations": null, "error": null, "statusCode": null, "isFinished": null, "isDead": null, "htmlLength": 128016 } }
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 pragma solidity ^0.4.0;
contract SimpleStorage {
uint storedData;
function set(uint x) {
storedData = x;
}
function get() constant returns (uint retVal) {
return storedData;
}
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; /// @title Voting with delegation. contract Ballot { // This declares a new complex type which will // be used for variables later. // It will represent a single voter. struct Voter { uint weight; // weight is accumulated by delegation bool voted; // if true, that person already voted address delegate; // person delegated to uint vote; // index of the voted proposal }
}
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; contract SimpleAuction { // Parameters of the auction. Times are either // absolute unix timestamps (seconds since 1970-01-01) // or time periods in seconds. address payable public beneficiary; uint public auctionEndTime;
}
% gcc_version=5.1.0 % wget https://ftp.gnu.org/gnu/gcc/gcc-${gcc_version}/gcc-${gcc_version}.tar.bz2 % wget https://ftp.gnu.org/gnu/gcc/gcc-${gcc_version}/gcc-${gcc_version}.tar.bz2.sig % wget https://ftp.gnu.org/gnu/gnu-keyring.gpg % signature_invalid=
gpg --verify --no-default-keyring --keyring ./gnu-keyring.gpg gcc-${gcc_version}.tar.bz2.sig
% if [ $signature_invalid ]; then echo "Invalid signature" ; exit 1 ; fi % tar -xvjf gcc-${gcc_version}.tar.bz2 % cd gcc-${gcc_version} % ./contrib/download_prerequisites % cd .. % mkdir gcc-${gcc_version}-build % cd gcc-${gcc_version}-build % $PWD/../gcc-${gcc_version}/configure --prefix=$HOME/toolchains --enable-languages=c,c++ % make -j$(nproc) % make installmkdir build % cd build % CC=$HOME/toolchains/bin/gcc CXX=$HOME/toolchains/bin/g++ \ cmake .. -DCMAKE_CXX_LINK_FLAGS="-Wl,-rpath,$HOME/toolchains/lib64 -L$HOME/toolchains/lib64"