Posts

Showing posts from April 10, 2019

On macOS 10.14 Mojave, impossible to install `newrelic` Node.js module

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box; } 3 Since the upgrade to macOS 10.14 Mojave, it seems that the installation of the newrelic (version 4.11.0) Node.js module fails. Let's create a project: $ mkdir test-newrelic $ cd test-newrelic/ $ npm init $ npm init --yes Now, let's install newrelic module: $ npm install --save newrelic > @newrelic/native-metrics@3.1.2 install /Users/<user>/Sources/test-newrelic/node_modules/@newrelic/native-metrics > node ./lib/pre-build.js install native_metrics > /Users/<user>/.nvm/versions/node/v6.14.4/bin/node /Users/<user>/.nvm/versions/node/v6.14.4/lib/node_modules/npm/node_modules/node-g

39th Indiana Infantry Regiment

Image
39th Regiment Indiana Infantry Active August 29, 1861, to October 15, 1863 Country United States Allegiance Union Branch Infantry & Mounted Infantry Engagements Battle of Shiloh Siege of Corinth Battle of Stones River Tullahoma Campaign Battle of Liberty Gap Battle of Chickamauga Chattanooga Campaign Battle of Lookout Mountain Battle of Missionary Ridge The 39th Regiment Indiana Infantry was an infantry regiment that served in the Union Army during the American Civil War. In April 1863 the unit was given horses and changed to mounted infantry. Contents 1 Service 2 Detailed service 3 Casualties 4 Commanders 5 See also 6 References Service The 39th Indiana Infantry was organized at Indianapolis, Indiana and mustered in for a three-year enlistment on August 29, 1861. The regiment was attached to Wood's Brigade, McCook's Command, Army of the Ohio, October–November 1861. 6th Brigade, Army of the Ohio, to Dec

How to download .csv file with log in required using python?

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box; } 0 I am trying to log in to download a .csv file from this url https://www.mapmyfitness.com/workout/export/csv. The url redirects the page to this url: https://www.mapmyfitness.com/auth/login?next=/workout/export/csv I have tried implemented the below code but come up with this error: username = 'email' password = 'password' url1 = 'https://www.mapmyfitness.com/workout/export/csv' url2 = 'https://www.mapmyfitness.com/auth/login?next=/workout/export/csv' payload = {'email': username, 'password': password} requests.post(url2, data=payload) with requests.Session() as s: