+ 68

Hiring freelancer: Cryptocurrency Trading Technical Analysis (Scraping from another website)

Scraping Variables: 1. Realtime lowest & highest prices From https://vip.bitcoin.co.id/ 2. Realtime 7 days average change From https://coinmarketcap.com/all/views/all/ The combine is scraping from two different sites in one page. Feel free to use JSON, PHP or Python. Logs and Credits: 1. Abdelfattah Toulaoui https://www.sololearn.com/Profile/3901160 Python https://code.sololearn.com/cgPQdK22g8Na/?ref=app#py 2. Calvin https://www.sololearn.com/Profile/4354920 JSON a. Scraping from bitcoin.co.id https://code.sololearn.com/W9Guej5bPSKK/?ref=app b. Scraping last week change from coinmarketcap.com https://code.sololearn.com/WIKmHtaVrKZN/?ref=app Showing the current prices (lowest & highest) and last week change percentage of different pages. Please, upvote their codes to appreciate their effort.

26th Sep 2017, 10:05 PM
Adi Pratama
Adi Pratama - avatar
11 Respostas
+ 6
I'm not CC expert so I'm not sure if I got the right API address https://code.sololearn.com/cgPQdK22g8Na/?ref=app But this should work with most apis Edit: Modified the script so that it enters an infinit loop updating the values every few seconds
31st Aug 2017, 7:15 PM
Abdelfattah Toulaoui
Abdelfattah Toulaoui - avatar
31st Aug 2017, 9:41 AM
Calviղ
Calviղ - avatar
+ 8
@Adi Pratama I think this is the trading price data you are looking for... https://code.sololearn.com/W9Guej5bPSKK/?ref=app
31st Aug 2017, 11:07 AM
Calviղ
Calviղ - avatar
+ 6
Where Ajay The Freelancer :P
31st Aug 2017, 7:59 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 6
@Adi wrote: << what's the purpose of sys.stdout.write('\x1b[1A'*12) inside ur code? >> sys.stdout.write is kind of low level print(): https://stackoverflow.com/questions/3263672/JUMP_LINK__&&__python__&&__JUMP_LINK-the-difference-between-sys-stdout-write-and-print ... and start of string outputed is called ANSI escape sequence, which are command to handle text output, such as change color, cursor position... in this case, the command will move the cursor up one row 12 times, by repeating 12 times the command to move up cursor one row (could have been written '\33[12A' -- '\33' or '\x1b' is same char but in octal or in hexadecimal representation, A is the command itself, 12 is parameter): https://en.m.wikipedia.org/wiki/ANSI_escape_code#Sequence_elements
9th Sep 2017, 4:54 AM
visph
visph - avatar
+ 5
https://code.sololearn.com/WN3ltEZq5wGW/?ref=app
31st Aug 2017, 10:04 AM
Calviղ
Calviղ - avatar
+ 3
Looks interesting
31st Aug 2017, 9:53 AM
Jay
Jay - avatar
+ 3
yeah, try it on a computer because it's importing a few big modules and CodePlayground doesn't like it
31st Aug 2017, 8:13 PM
Abdelfattah Toulaoui
Abdelfattah Toulaoui - avatar
+ 2
I have a habbit of using 4 spaces and python recognizes spaces and tabs differently so make sure to use the right ones. PS: I see you're using notepad++ and it detects the problem and shows different blocks besides the line numbers
8th Sep 2017, 1:26 PM
Abdelfattah Toulaoui
Abdelfattah Toulaoui - avatar
+ 1
@adi the litecoin code is not working because the break is in the wrong block, it should be under the if not the while
9th Sep 2017, 2:06 PM
Abdelfattah Toulaoui
Abdelfattah Toulaoui - avatar
- 4
show de bola
31st Aug 2017, 2:10 PM
cesar oliveira
cesar oliveira - avatar