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.8.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: scrapeShivam-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 5529420c0cb494340d6d9d9d749768ed395572e894ba6c518540c87f91c5b297
MD5 02d063aaa3577bc38442e1f22e64bfcf
BLAKE2b-256 f52179619952529307c8f954fc26cdc51d1d63778f6a5d2c4627a0fe47e79507

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scrapeShivam-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c2bcf01e8ed50e6390d3bf0db6a08d2e72d4a5552c4d6a23c569f08b12bd796d
MD5 b88f4a9e496d322ae9e9b5ba726b0721
BLAKE2b-256 2ed64ea37a8fa5089284cf698bc690b8f6af27655b260f49b0caa3060c46a571

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