Introduction Earlier I gave you an overview of how you can you GPT APIs to build a stock sentiment analysis system. In this post, I am going to introduce you to Google Bard, Google’s answer to OpenAI’s chatGPT. Bard has been around for a few months but they recently offered APIs to access their LLM. Initially, they introduced PaLM APIs but very recently they have offered Gemini Pro and Gemini Pro Vision APIs which means that like GPT4 Vision, you can now use Bard APIs to process images. We are not going to discuss image processing capabilities at the moment. I am going to offer a use case where I…
-
-
Using the RSI Indicator to Generate Trading Signals in Python with TaLib
This post is the part of trading series. In the past, I gave you a brief intro to Ta-Lib and how it can be used in technical analysis, in this post, I am going to discuss how you can RSI indicator to generate buy or sell signals in Python by using the TA-Lib library. Before I write code about the implementation, let’s discuss a bit about signal generation and RSI. What Are Signals In the world of trading, signals are cues or indicators that are derived from various kinds of analyses and guide investors on when to buy, sell, or hold shares. They help traders to make informed decisions based…
-
Automate Your Recipe Posts on Facebook Page with Python
A step by step guide how you can automate and schedule your Facebook Page posts using Facebook Graph API in Python
-
Getting started with On-chain Data Analysis in Python using getblock.io
On-chain data analysis involves studying the information recorded on a blockchain to gain insights into transaction patterns, market trends, and network behavior. By examining the data stored on the blockchain, analysts can uncover valuable information about user behavior, market sentiment, and the overall health of a blockchain network. In this post, I am going to discuss some basics about on-chain data analysis for blockchain and then will be discussing how we can leverage the getblock.io platform to perform on-chain analysis of transactions using Python language. What is On-chain Data Analysis? On-chain data analysis refers to the process of studying the information recorded on a blockchain. It involves analyzing transaction details,…
-
Scraping dynamic websites using Scraper API and Python
Learn how to efficiently and easily scrape modern Javascript enabled websites or Single Page Applications without installing a headless browser and SeleniumIn the last post of the scraping series, I showed you how you can use Scraper API, an online data extractor to scrape websites that use proxies hence your chance of getting blocked is reduced. Today I am going to show how you can use Scraper API to scrape websites that are using AJAX to render data with the help of JavaScript, Single Page Applications(SPAs), or scraping websites using frameworks like ReactJS, AngularJS, or VueJS. I will be working on the same code I had written in the introductory post. Let’s work on a simple example. There is a website that tells your IP, called HttpBin. If you load…
-
Create Stock Sentiment Analysis in Python using chatGPT
ChatGPT is a large language model developed by OpenAI that has gained immense popularity for its ability to generate human-like text responses to prompts. With its advanced natural language processing capabilities, ChatGPT has become a powerful tool for a variety of applications, including sentiment analysis. By analyzing text data and identifying the underlying sentiment, ChatGPT can provide valuable insights into customer feedback, social media sentiment, and other aspects of public opinion. In this blog post, I’ll explore how ChatGPT can be used for sentiment analysis without using any library or code to write the main logic. Let’s proceed! If you are in a hurry or not interested in technical details…
-
5 Application Security Best Practices for 2023
Image Source What Is Application Security? Application security is the practice of protecting computer systems and applications from threats and vulnerabilities. This includes measures to prevent unauthorized access, modification, use, destruction, disruption, or disclosure of an application or its data Application security is important because applications are often the primary targets of cyber attacks. Hackers may try to exploit vulnerabilities in an application to gain access to sensitive information, steal data, or disrupt the operation of the application. Application security aims to prevent these types of attacks and protect against the consequences of a successful attack. Application Security Best Practices Monitor the Software’s Supply Chain Most (but not all) software…
-
The Compliance Risks of Synthetic Data Generation
What Is Synthetic Data? Synthetic data is machine-generated data based on real-world data. It requires building a machine learning (ML) model to capture the patterns in the original, real data before generating new synthetic data based on these patterns. The generated data accurately represents the original data’s statistical distributions, patterns, and properties. Synthetic data is useful for applications facing privacy concerns – it is not regarded as personally identifiable information (PII), because it is not directly traceable to real individuals. Thus, organizations can freely share and use synthetic data with minimal technical and administrative controls. This process requires a high level of automation, relying on fewer human resources and skills…
-
Using Neo4j to visualize medicines’ class and their ingredients
In my first post about Neo4j, I explored Python modules and their dependencies. Now in this post, I am discussing how you can find the relationship between medicines, their ingredients, and their classification. But why did I choose this dataset in the first place so here is the background Background: Currently, there is a shortage of Panadol in Pakistan, a very famous brand to cure headaches and bodily pain because the company has stopped producing it as they don’t find it viable anymore. Existing Panadol strips which used to cost Rs. 30 are even available for Rs.80 because of the lack of awareness and amazing marketing by the company. Many…
-
Creating an e-commerce bot to buy online items with ScrapingBee and Python
I wrote about ScrapingBee a couple of years ago where I gave a brief intro about the service. ScrapingBee is a cloud-based scraping service that provides both headless and lightweight typical HTTP request-based scraping services. Recently I discovered that they are providing some cool features which other online services are not providing as such. What are those features? I thought to explore and explain them with a real use case. I used Python language to automate the Daraz group’s shopping website, a famous e-commerce website service in Asian countries like Pakistan, Nepal, Bangladesh, and Sri Lanka. I am automating DarazPK since I am in Pakistan. You can view the demo…