Skip to main content

Scrapping altnews|Google images|Instagram|facebook|Twitter|Tradingview chartImage

Project description

Scrapping

1 Altnews.com scrapping

2 Google Image Scrapping

3 Instagram user profile scrapping based on username

4 Instagram single post scrapping based on link

5 Facebook post scrapping based on postlink

6 Twitter post scrapping based on link

7 Tradingview chart image scrapping

8 Whatsapp messaging using whatsappweb


1 ALTNEWS

This is a Indian fact news checking site. this package is helpful to scrape all data and create a dataframe of every article which is available on site . data includes: Text Author name Date Title Link


2 Google Image Downloader

In this module you can scrape all images based on given image name . Basically it takes a few minutes to scrape all imaes . it iterates over all image sub categories and scrape them . This is very useful for making dataset of difficult images dataset . Required only name of image


3 Instagram user profile scrapping

Scrape a whole user profile images based on instagram userid just need userid .


4 Scrapping instagram posts

This is helpful to scrape data related to a instagram post . shared link of post.


5 Scrapping Facebook post

This is related to scrape post of the faceebook based on shared link of facebook post .


6 Scrapping Twitter post

Just get the shareable link of twitter post . Use that as a url to the function and it will return data related to posts .


7 Scrapping trading view image chart

This is to save image of the tradingview chart based on symbol,timeinterval . THis is helpful to make dataset for trading projects .


8 Whatsapp messaging

Here we can send messages to existing friends in the user accout . This is based on whatsapp web . Just need to scan whatsapp QR code and start to message to the friends . You can send a messages n no. of times . Ex: target='varsha' message='Hi' n=10 Then it will send message Hi 10 times to varsha .

Importing scrapperShivam

***************************************************************

import scrape

***************************************************************

1 # Altnews.com

***************************************************************

#1 Fake News dataset from altnews.com

scrape.altnews()

***************************************************************

2 # scrape fb_post

***************************************************************

# Scrapping facebook post based on fb_url

import scrape
url="""http://www.facebook.com/story.php?story_fbid=1465359780314951&id=100005228298088&scmts=
scwspsdd&extid=zIROvP0jkc3UkapK"""
text,image,url=scrape.fb_post(url)

***************************************************************
('मेरे द्वारा एक निजी इंजीनियरिंग कॉलेज के फेसबुक पेज पर खुद के वेतन और संस्था की सच्चाई पूर्ण विनम्रता के साथ कॉमेंट बॉक्स में लिखी थी तो कॉलेज प्रशासन ने उसे हटा दिया और सभी स्टाफ मेंबर से बोला है कि...',
 'https://scontent.fixc7-1.fna.fbcdn.net/v/t1.0-9/116582208_1465359653648297_6414823970251708469_o.jpg?_nc_cat=103&_nc_sid=110474&_nc_ohc=dAOYaJ52M2oAX-GH2UF&_nc_ht=scontent.fixc7-1.fna&oh=a5e88e7ad2018bb1764f2c97b2caa9f9&oe=5F9ACA07',
 'https://www.facebook.com/permalink.php?story_fbid=1465359780314951&id=100005228298088')

3 # scrape image from google

***************************************************************

# scrapping all images from google based on image name 

scrape.google_image('football')

***************************************************************

4 # Instagram scrape post

***************************************************************

# Instagram post scrapping based on link 

insta_post_url='https://www.instagram.com/p/CFy6m47lFJi/?utm_source=ig_web_button_share_sheet'
text,image=scrape.insta_post(insta_post_url)

***************************************************************
Trying with : https://www.instagram.com/p/CFy6m47lFJi/?utm_source=ig_web_button_share_sheet





('\nAmbivert परिंदा 🦋 (@curlicious_memer) posted on Instagram: “Paisa barbaad bc ..ab lagta Whitehat jr. p hi registration krna pdega 😕😂 Follow @curlicious_memer for more . . . . . . #softwareengineer…” • Oct 1, 2020 at 9:16am UTC\n',
 'https://instagram.fixc7-1.fna.fbcdn.net/v/t51.2885-15/e35/120477874_330305014963377_8160288912634310107_n.jpg?_nc_ht=instagram.fixc7-1.fna.fbcdn.net&_nc_cat=109&_nc_ohc=lesd4rVgfMAAX_z-3yo&_nc_tp=18&oh=5fcfd512ef4c3dbb88fbbe181f2bea3b&oe=5FA1AFA0')

5 # Scrape Insta profile

***************************************************************

# scrapping all images of a insta user profile

scrape.insta_profile('shivamthevirus')

***************************************************************
Retrieving ..............
Started downloading .........

6 # Scrape chart image from tradingview

***************************************************************

# scrapping chart image from tradingview.com based on symbol and time interval 

scrape.trade('reliance',t='month') #t=month/minute/hour/week/

***************************************************************
image_url :  https://www.tradingview.com/x/WVWuMkqj/





'images/reliance-2.png'

7 # Scrapping Post from twitter link

***************************************************************

twit_url='https://twitter.com/rashtrapatibhvn/status/1311647175747592198?s=20'
text.image,url=scrape.twit_post(twit_url)

***************************************************************
Trying with : https://mobile.twitter.com/rashtrapatibhvn/status/1311647175747592198?s=20





('  आज मेरे जन्मदिन पर मुझे अनेक शुभकामना सन्देश प्राप्त हुए हैं। इसके लिए मैं हृदय से आभार व्यक्त करता हूं। आप सभी देशवासियों के स्नेह और सौहार्द से मुझे राष्ट्र की सेवा में तत्पर रहने की प्रेरणा व ऊर्जा प्राप्त होती है। आप सभी का बहुत-बहुत धन्यवाद!\n',
 '',
 '')

8 # messaging with web.whatsapp.com

***************************************************************
# scan web.whatsapp qrcode and give input y to continue
scrape.whatsapp()

***************************************************************


          

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrapeShivam-0.0.9.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

scrapeShivam-0.0.9-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file scrapeShivam-0.0.9.tar.gz.

File metadata

  • Download URL: scrapeShivam-0.0.9.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for scrapeShivam-0.0.9.tar.gz
Algorithm Hash digest
SHA256 677476ce0400d689f0b90efe70ce10ddd43b04c35977180f08302e3f8beed286
MD5 d4f414ba931fef96fbbef64178cc9bba
BLAKE2b-256 90b1f224455bde52bd080c57e881c1f34c547afe67be266753153f87bf252e7b

See more details on using hashes here.

File details

Details for the file scrapeShivam-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: scrapeShivam-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for scrapeShivam-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 eb37f11b89d9712bbb465f4e24b8c48c2faa61c9ec3919fb494267cd37852a51
MD5 20233771fc0b0989e6288384422fbff3
BLAKE2b-256 9354fbc84212f28c343a5354cb56e05d672d9ffc106bec9c4bb7a6b36a883535

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page