Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support package.yaml and package.json5 #1799

Merged
merged 12 commits into from
May 1, 2019
Merged

feat: support package.yaml and package.json5 #1799

merged 12 commits into from
May 1, 2019

Conversation

zkochan
Copy link
Member

@zkochan zkochan commented Apr 28, 2019

close #1100

  • preserve indentation
  • make it work in monorepo
  • only write the manifest file if it has changes

@zkochan zkochan force-pushed the feat/1100 branch 2 times, most recently from 658c23e to c4fb46f Compare April 29, 2019 12:39
@zkochan
Copy link
Member Author

zkochan commented Apr 30, 2019

@octogonz I just noticed you in json5 repo json5/json5#190. Probably this feature will be interesting to you

@octogonz
Copy link
Member

octogonz commented May 1, 2019

Thanks! I added some thoughts to #1100

@zkochan zkochan added this to the v3.3 milestone May 1, 2019
Copy link

@Mohstarclassnet Mohstarclassnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To implement real-time data harvesting for your banking/investment platform, you need both:
1. A Web Scraper (Program) – To collect financial data from various sources.
2. An Application (Dashboard/API) – To process, store, and display the data for users.

  1. Web Scraper (Python Program)

This Python script collects financial data (such as stock prices, exchange rates, and news) from web sources every minute.

Requirements

Install the necessary libraries:

pip install requests beautifulsoup4 schedule pandas

Python Code for Real-Time Data Harvesting

import requests
from bs4 import BeautifulSoup
import schedule
import time
import pandas as pd

Function to scrape financial data

def fetch_financial_data():
url = "https://www.example.com/finance" # Replace with actual financial data source
headers = {"User-Agent": "Mozilla/5.0"}

response = requests.get(url, headers=headers)
if response.status_code == 200:
    soup = BeautifulSoup(response.text, "html.parser")
    
    # Example: Extract stock prices (Modify as needed)
    stocks = soup.find_all("div", class_="stock-price")  
    data = [{"Stock": stock.text} for stock in stocks]
    
    # Save data to CSV (or database)
    df = pd.DataFrame(data)
    df.to_csv("financial_data.csv", mode='a', index=False, header=False)
    
    print("Data collected and saved.")
else:
    print("Failed to fetch data.")

Schedule the scraper to run every minute

schedule.every(1).minutes.do(fetch_financial_data)

print("Starting data harvesting...")
while True:
schedule.run_pending()
time.sleep(1)

What This Does:
• Scrapes financial data (e.g., stock prices).
• Stores it in a CSV file (can be extended to a database).
• Runs every minute automatically.

  1. Application (Dashboard/API)

The backend application should:
1. Process the collected data.
2. Display insights to users.
3. Send alerts on financial trends.

Tech Stack Options:

•	Backend: Flask/Django (Python) or Node.js
•	Frontend: React.js/Vue.js
•	Database: PostgreSQL/MySQL/MongoDB
•	Hosting: AWS, Azure, or your preferred cloud service

Would you like me to generate a Flask API or a Full-Stack Web App for real-time financial data visualization?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support package.yaml
4 participants