# Can i import a python library into makecode?

**URL:** https://forum.makecode.com/t/can-i-import-a-python-library-into-makecode/23188
**Category:** Arcade
**Created:** [October 9, 2023, 10:01pm UTC](https://forum.makecode.com/t/can-i-import-a-python-library-into-makecode/23188 "2023-10-09T22:01:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![makegame](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@makegame](https://forum.makecode.com/u/makegame)
#### Post date: [October 9, 2023, 10:01pm UTC](https://forum.makecode.com/t/can-i-import-a-python-library-into-makecode/23188/1 "2023-10-09T22:01:25Z")

</div>

I found a webscraping python library that I want to interface with my game, but im not sure how to import it to makecode. any insight greatly appreciated

---

<div class="post-metadata">

### Author: ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)
#### Post date: [October 9, 2023, 10:24pm UTC](https://forum.makecode.com/t/can-i-import-a-python-library-into-makecode/23188/2 "2023-10-09T22:24:12Z")

</div>

I am taking a guess at _probably not_, since Python in MakeCode seems to be mostly a translation layer which is “converted to Static TypeScript before being compiled to lower-level languages”.

Source: [https://makecode.com/language](https://makecode.com/language)

---

<div class="post-metadata">

### Author: ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)
#### Post date: [October 10, 2023, 4:38pm UTC](https://forum.makecode.com/t/can-i-import-a-python-library-into-makecode/23188/3 "2023-10-10T16:38:40Z")

</div>

Welcome, by the way, @makegame!

---

<div class="post-metadata">

### Author: ![EpicKitty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/epickitty/32/8358_2.png) [@EpicKitty](https://forum.makecode.com/u/EpicKitty)
#### Post date: [October 10, 2023, 4:44pm UTC](https://forum.makecode.com/t/can-i-import-a-python-library-into-makecode/23188/4 "2023-10-10T16:44:43Z")

</div>

You could try putting the code of the library into make code. If the library uses other libraries, then it might not be possible to use that library.

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [October 10, 2023, 7:06pm UTC](https://forum.makecode.com/t/can-i-import-a-python-library-into-makecode/23188/5 "2023-10-10T19:06:08Z")

</div>

Short answer: no

---

<div class="post-metadata">

### Author: ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)
#### Post date: [October 10, 2023, 9:34pm UTC](https://forum.makecode.com/t/can-i-import-a-python-library-into-makecode/23188/6 "2023-10-10T21:34:23Z")

</div>

Good summary.
