question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

images url are null for some specific post

See original GitHub issue

use the latest version 0.2.37 the post link is here

https://www.facebook.com/story.php?story_fbid=3198174880409662&id=100006515443288

code is here

for post in get_posts(post_urls=["https://www.facebook.com/story.php?story_fbid=3198174880409662&id=100006515443288"],
                      cookies='sessions/osip.json'):
    pprint(post)

returns images are null

{'available': True,
 'comments': 34,
 'comments_full': None,
 'factcheck': None,
 'image': None,
 'image_lowquality': 'https://scontent-hkt1-1.xx.fbcdn.net/v/t15.5256-10/cp0/e15/q65/p320x320/134873735_3198175097076307_5251936093091352164_n.jpg?_nc_cat=101&ccb=1-3&_nc_sid=ed1892&efg=eyJpIjoidCJ9&_nc_ohc=ps-7mU4Oi4UAX_soCEH&_nc_ht=scontent-hkt1-1.xx&tp=3&oh=49c591666dd0a763000694b358f9a483&oe=60ABF4D2',
 'images': None,
 'images_description': None,
 'images_lowquality': ['https://scontent-hkt1-1.xx.fbcdn.net/v/t15.5256-10/cp0/e15/q65/p320x320/134873735_3198175097076307_5251936093091352164_n.jpg?_nc_cat=101&ccb=1-3&_nc_sid=ed1892&efg=eyJpIjoidCJ9&_nc_ohc=ps-7mU4Oi4UAX_soCEH&_nc_ht=scontent-hkt1-1.xx&tp=3&oh=49c591666dd0a763000694b358f9a483&oe=60ABF4D2',
                       'https://scontent-hkt1-1.xx.fbcdn.net/v/t1.6435-0/cp0/e15/q65/p320x320/148250842_3198174683743015_4486208134381249018_n.jpg?_nc_cat=102&ccb=1-3&_nc_sid=110474&efg=eyJpIjoidCJ9&_nc_ohc=i5lwASePHK0AX-\\-\\JFGX&_nc_ht=scontent-hkt1-1.xx&tp=3&oh=a8d87aaa4453c0a2dbe9d54d07224f45&oe=60CE9ED7',
                       'https://scontent-hkt1-2.xx.fbcdn.net/v/t1.6435-0/cp0/e15/q65/s320x320/148258733_3198174710409679_1993337055042740738_n.jpg?_nc_cat=103&ccb=1-3&_nc_sid=110474&efg=eyJpIjoidCJ9&_nc_ohc=yFVr0H-kZZYAX8YeeUK&_nc_oc=AQkDUejakIfFOBlzoc2LBtYhYDy3cQzdKdFHM2iUmDCbvLa_gcZevUXKhsrI8g-5U-U&_nc_ht=scontent-hkt1-2.xx&tp=9&oh=20c68ba02c10df8fc396958862d801fb&oe=60CCCDC3',
                       'https://scontent-hkt1-2.xx.fbcdn.net/v/t1.6435-0/cp0/e15/q65/s320x320/147810025_3198174780409672_8145770994565686942_n.jpg?_nc_cat=104&ccb=1-3&_nc_sid=110474&efg=eyJpIjoidCJ9&_nc_ohc=4f270QNmLeUAX9a19Wb&_nc_ht=scontent-hkt1-2.xx&tp=9&oh=7959b0d3695e1116a3965f39cc4114dc&oe=60CD35BB',
                       'https://scontent-hkt1-2.xx.fbcdn.net/v/t1.6435-0/cp0/e15/q65/s320x320/148096937_3198174537076363_4022883650174018178_n.jpg?_nc_cat=106&ccb=1-3&_nc_sid=110474&efg=eyJpIjoidCJ9&_nc_ohc=7EJD3LkLbsUAX9ieuyu&_nc_ht=scontent-hkt1-2.xx&tp=9&oh=89896066538cd7f55657a2f41c939384&oe=60CCA755'],
 'images_lowquality_description': ['video',
                                   'May be an image of 2 people, child, people '
                                   'standing, flower and indoor',
                                   'May be an image of 3 people, people '
                                   'sitting, people standing and indoor',
                                   'May be an image of 7 people, people '
                                   'standing, people sitting and indoor',
                                   'May be an image of 9 people, people '
                                   'standing and indoor'],
 'is_live': False,
 'likes': 280,
 'link': 'https://media1.tenor.co/images/fe5a8f89962529f7b251efc3aab64a48/tenor.gif?itemid=9246757&fbclid=IwAR1_8ZJZYfHejh3f29xWi7XIdOBMoJ5iqizj4dBGk3pZGwQde0sfx-eUibo',
 'original_request_url': 'https://www.facebook.com/story.php?story_fbid=3198174880409662&id=100006515443288',
 'post_id': '3198174880409662',
 'post_text': 'Tết đến nơi rồi còn nhà nào chưa gói banha chưng ko để Phở đến '
              'giúp nào.',
 'post_url': 'https://facebook.com/story.php?story_fbid=3198174880409662&id=100006515443288',
 'reactors': None,
 'shared_post_id': None,
 'shared_post_url': None,
 'shared_text': '',
 'shared_time': None,
 'shared_user_id': None,
 'shared_username': None,
 'shares': 2,
 'text': 'Tết đến nơi rồi còn nhà nào chưa gói banha chưng ko để Phở đến giúp '
         'nào.',
 'time': datetime.datetime(2021, 2, 8, 21, 50),
 'user_id': '100006515443288',
 'user_url': 'https://facebook.com/profile.php?id=100006515443288&refid=52&__tn__=C-R',
 'username': 'Minh Hải Đào',
 'video': None,
 'video_duration_seconds': None,
 'video_height': None,
 'video_id': None,
 'video_quality': None,
 'video_size_MB': None,
 'video_thumbnail': None,
 'video_watches': None,
 'video_width': None,
 'w3_fb_url': None}

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
coveincommented, May 22, 2021

update: I changed my cookie from another ip, and it works, thanks

BUT a few minutes later, the video is None again, maybe the problem is my account.

0reactions
neon-ninjacommented, May 25, 2021

This should fix the problem - https://github.com/kevinzg/facebook-scraper/commit/9ef99cbd6954429d5ff3fe69324ad6fa66910fb8 Output:

{'available': True,
 'comments': 45,
 'comments_full': None,
 'factcheck': None,
 'image': None,
 'image_lowquality': None,
 'images': [],
 'images_description': [],
 'images_lowquality': [],
 'images_lowquality_description': [],
 'is_live': False,
 'likes': 102,
 'link': None,
 'original_request_url': 'https://www.facebook.com/100006515443288/posts/3285708404989642',
 'post_id': '3285708404989642',
 'post_text': 'Sau 1 hồi trèo leo đủ kiểu để mở khoá phòng thì tối qua Phở vẫn '
              'phải ngủ ngoài hành lang nha mọi người. Vậy nên Phở đã nghĩ ra '
              '1 sáng kiến mới, mong là đêm nay đc ngủ trong phòng của mình. '
              'Chứ 2 hôm nay không có đồ để chơi, và ko đc ngủ trong phòng rồi '
              'hu hu😭😭😭.\n'
              'Ps: Ai có sáng kiến gì thì mách Phở với.❤️\n'
              'See Translation\n'
              '\n'
              'Sau 1 hồi trèo leo đủ kiểu để mở khoá phòng thì tối qua Phở vẫn '
              'phải ngủ ngoài hành lang nha mọi người. Vậy nên Phở đã nghĩ ra '
              '1 sáng kiến mới, mong là đêm nay đc ngủ trong phòng của mình. '
              'Chứ 2 hôm nay không có đồ để chơi, và ko đc ngủ trong phòng rồi '
              'hu hu😭😭😭.\n'
              'Ps: Ai có sáng kiến gì thì mách Phở với.❤️\n'
              '\n'
              'Play Video',
 'post_url': 'https://facebook.com/story.php?story_fbid=3285708404989642&id=100006515443288',
 'reaction_count': None,
 'reactions': None,
 'reactors': None,
 'shared_post_id': None,
 'shared_post_url': None,
 'shared_text': '',
 'shared_time': None,
 'shared_user_id': None,
 'shared_username': None,
 'shares': 0,
 'text': 'Sau 1 hồi trèo leo đủ kiểu để mở khoá phòng thì tối qua Phở vẫn phải '
         'ngủ ngoài hành lang nha mọi người. Vậy nên Phở đã nghĩ ra 1 sáng '
         'kiến mới, mong là đêm nay đc ngủ trong phòng của mình. Chứ 2 hôm nay '
         'không có đồ để chơi, và ko đc ngủ trong phòng rồi hu hu😭😭😭.\n'
         'Ps: Ai có sáng kiến gì thì mách Phở với.❤️\n'
         'See Translation\n'
         '\n'
         'Sau 1 hồi trèo leo đủ kiểu để mở khoá phòng thì tối qua Phở vẫn phải '
         'ngủ ngoài hành lang nha mọi người. Vậy nên Phở đã nghĩ ra 1 sáng '
         'kiến mới, mong là đêm nay đc ngủ trong phòng của mình. Chứ 2 hôm nay '
         'không có đồ để chơi, và ko đc ngủ trong phòng rồi hu hu😭😭😭.\n'
         'Ps: Ai có sáng kiến gì thì mách Phở với.❤️\n'
         '\n'
         'Play Video',
 'time': datetime.datetime(2021, 5, 20, 17, 8),
 'user_id': '100006515443288',
 'user_url': 'https://facebook.com/profile.php?id=100006515443288&__tn__=C-R',
 'username': 'Minh Hải Đào',
 'video': 'https://scontent.fhlz2-1.fna.fbcdn.net/v/t66.36240-6/10000000_301005421482245_5555225528740996257_n.mp4?_nc_cat=108&ccb=1-3&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9oZCJ9&_nc_ohc=-jh_ZwZeXWgAX-HmEUU&_nc_ht=scontent.fhlz2-1.fna&oh=ef4778205c4fbe22148db5649fe0cc3c&oe=60D09508',
 'video_duration_seconds': 75,
 'video_height': 1280,
 'video_id': '3285706868323129',
 'video_quality': '720p',
 'video_size_MB': 36.941795,
 'video_thumbnail': 'https://scontent.fhlz2-1.fna.fbcdn.net/v/t15.5256-10/cp0/e15/q65/p320x320/176029139_3285708998322916_6561980351671984186_n.jpg?_nc_cat=100&ccb=1-3&_nc_sid=ccf8b3&efg=eyJpIjoidCJ9&_nc_ohc=zDr3aAT1Xh8AX98SjH6&_nc_ht=scontent.fhlz2-1.fna&tp=3&oh=79b9e9cf4e021bd0ee8d6cb567e04afb&oe=60B0F419',
 'video_watches': 270,
 'video_width': 720,
 'w3_fb_url': None}
Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Specify if image of url leads to null - Stack Overflow
Now, I want to specify in javascript, if the url address: '/image.php?song=SongName' returns null (if there is not an image cover on the ......
Read more >
Certain URLs wont load. Error is null. · Issue #1675 - GitHub
Exception is null and I have no idea why some of my images wont load. The URLs passed into Glide seem fine. ......
Read more >
Getting image url error code: Impossible to access an attribute ...
Because image would be set to NULL, and NULL doesn't have an attribute of url . (This is exactly what the error message...
Read more >
ACF 'Image' Field Returns NULL - WordPress.org
The “var_dump” function returns NULL, even though I assigned an image to the custom post that is associated with the custom post type...
Read more >
ImageView (JavaFX 8) - Oracle Help Center
Allocates a new ImageView object with image loaded from the specified URL. Method Summary. All Methods Static Methods Instance ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found